From: "Björn Bidar" <bjorn.bidar@jolla.com>
To: "dash@vger.kernel.org" <dash@vger.kernel.org>
Subject: Printf %q
Date: Mon, 28 Mar 2022 04:45:13 +0000 [thread overview]
Message-ID: <6343726.ZXKkvaxoqQ@odin> (raw)
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
next reply other threads:[~2022-03-28 4:45 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-03-28 4:45 Björn Bidar [this message]
2022-03-28 6:11 ` Printf %q Harald van Dijk
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=6343726.ZXKkvaxoqQ@odin \
--to=bjorn.bidar@jolla.com \
--cc=dash@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.