Comment 5 for bug 259671

Revision history for this message
Jilles Tjoelker (jilles) wrote : Re: dash parses backslashes in single quotes

The issue is not with the single quotes, but with dash's echo builtin. Apparently, the way they are compiled and configured by default on Ubuntu, dash's echo builtin interprets backslash escape sequences while bash's does not.

According to POSIX, this interpretation is permitted; with the XSI option (following traditional System V), it is required.

Practically, the echo utility can only be used portably if both backslashes and initial hyphens (which could be interpreted as options) are omitted. The printf utility is a good substitute.

I don't see much point in changing dash here.