severity 504292 wishlist
thanks

Hi,

On Sun, 2008-11-02 at 16:03 +0100, jre-phoenix wrote:
> https://wiki.ubuntu.com/DashAsBinSh:
> $'...' is a bashism to expand escape sequences; for example, $'\t'
> expands to a horizontal tab. Use "$(printf '\t')" etc. instead.
> 
> Indeed $'...' only works with bash, but fails with dash.

Thanks for the report.

We are aware of the $'' bashism - indeed checkbashisms contains a
commented-out check for it. The reason the check is disabled is that
when it and a similar check for $"" were tested against the wide range
of shell scripts available in Debian, they produced a high level of
false positives and were disabled in devscripts 2.10.30, only one
package after having been introduced.

If a check can be found which reliably flags the use of $'' for printing
strings without many (preferably any, but that's not always possible)
false positives than I'd happily look at including it.

Regards,

Adam



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to