On Sun, Sep 18, 2005 at 12:00:46AM +0200, Matthias Klose wrote: > Package: dash > Version: 0.5.2-7 > Severity: important > > echo '\1\2\3' > foo > > when executed from dash (current unstable), echo's three characters, > while bash/zsh/posh echo the six characters. Found in a makefile, > generating wrong sed commands with dash.
This is correct as POSIX requires echo to interpret escape sequences. A more portable way to write the above is printf '%s\n' '\1\2\3' > foo Cheers, -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmV>HI~} <[EMAIL PROTECTED]> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]