bug-gnulib
[Top][All Lists]
Advanced

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

quotearg: shell escape issue with single quote


From: Grisha Levit
Subject: quotearg: shell escape issue with single quote
Date: Sat, 30 Mar 2024 21:16:07 -0400

If a string starts with a sequence that requires $'' quoting followed
by a \' and then another charactrer requiring $'' quoting, the '$' at
the start of the quoted string ends up missing:

    $ env printf '%q\n' $'\1\'\2'
    '\001'\'''$'\002'



reply via email to

[Prev in Thread] Current Thread [Next in Thread]