← Back to team overview

registry team mailing list archive

[Bug 259671] 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.

-- 
dash parses backslashes in single quotes
https://bugs.launchpad.net/bugs/259671
You received this bug notification because you are a member of Registry
Administrators, which is the registrant for Debian.



Follow ups