Printf %q

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

 



Hey,

Bash and Coreutils support print %q to quote a string for it to be used as 
shell input.

"%q     ARGUMENT is printed in a format that can be reused as shell input, 
escaping non-printable characters with the proposed POSIX $'' syntax."

Dash also supports the $' ' syntax used by this. Where was this proposed to 
POSIX?

Would it make sense to also support printf %q dash already supports $' '.


Br,

Björn Bidar




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

  Powered by Linux