News for hackers. Stuff that matters.
Re:Escaping strings in Bash using !:q by kps on Friday October 02, 2020 @10:20AM (#24662860)
ksh's %q prefers quotes; for your example it prints 'text with spaces', and for the article's example,

    $'This string \'has single\' "and double" quotes and a $'
vs bash's %q,

    This\ string\ \'has\ single\'\ \"and\ double\"\ quotes\ and\ a\ \$

There are no comments on this comment yet.