Re: Printf %q

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 28/03/2022 05:45, Björn Bidar wrote:
Dash also supports the $' ' syntax used by this.

Does it? As far as I can see, dash does not support the $' ' syntax. With the $' ' syntax,

  newline=$'\n'

assigns to newline a string of length 1 containing a newline character. In dash, what happens instead is that newline is assigned a string of length 3 containing the characters $, \, and n.

Tested with current master, commit 057cd650.

Cheers,
Harald van Dijk



[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux