S6-QUOTE(1)
π S6-QUOTE β quote a string and write it to stdout
okay bestie, welcome to the s6-quote(1) page from the General Commands Manual β this one is short, sweet, and honestly kinda iconic. It takes a string, quotes it, and sends it straight to stdout. That's the whole main character arc. β¨
β¨ SYNOPSIS β¨
s6-quote [-n] [-u] [-d delim] string
π DESCRIPTION π
So s6-quote quotes string, putting it inside double quotes and escaping all dubious characters. No cap, it handles the questionable lil gremlin characters for you. π«Ά
It writes the quoted string to stdout and exits 0. Clean, simple, slay.
Quoted strings are guaranteed to be pure printable ASCII, without control characters. That means no weird invisible chaos, bestie β it's giving safe and printable. π
Quoted strings can be unquoted via the s6-unquote(1) or s6-unquote-filter(1) programs. So yes, there's a matching set, iykyk. π¦
Quoted strings are suitable for interpretation by execlineb(1). Very demure, very execline-compatible.
πΈ OPTIONS πΈ
-nβ Do not print a trailing newline. If you hate the lil newline at the end, this is your moment. π-uβ Do not put string inside double quotes, only escape characters if needed. Just the escaping part, no quote wrappers. π-d delimβ Use the first character of delim as a quote character, instead of double quotes. First character only, bestie β it said what it said. π
π EXIT STATUS π
111β Temporary error. A lil temporary oopsie.100β Permanent error, such as a misuse. That one's permanent, so maybe don't do that. π127β Unable to execute program - not found.126β Unable to execute program - other reason.
π¦ SEE ALSO π¦
okay bestie, the whole family reunion is here: s6-basename(1), s6-cat(1), s6-chmod(1), s6-chown(1), s6-clock(1), s6-cut(1), s6-dirname(1), s6-dumpenv(1), s6-echo(1), s6-env(1), s6-expr(1), s6-false(1), s6-format-filter(1), s6-grep(1), s6-head(1), s6-hiercopy(1), s6-linkname(1), s6-ln(1), s6-ls(1), s6-maximumtime(1), s6-mkdir(1), s6-mkfifo(1), s6-nice(1), s6-nuke(1), s6-pause(1), s6-printenv(1), s6-quote-filter(1), s6-rename(1), s6-rmrf(1), s6-seq(1), s6-sleep(1), s6-sort(1), s6-sync(1), s6-tai64ndiff(1), s6-tail(1), s6-touch(1), s6-true(1), s6-uniquename(1), s6-unquote(1), s6-unquote-filter(1), s6-update-symlinks(1), seekablepipe(1).
This man page is ported from the authoritative documentation at: https://skarnet.org/software/s6-portable-utils/s6-quote.html π
π AUTHORS π
Laurent Bercot β icon, legend, the moment. π
Alexis <flexibeast@gmail.com> (man page port) β thank you for the port, bestie. π«Ά
Debian-flavored, dated April 17, 2022 β mwah π
π¦ where this page comes from
- nixpkgs unstable: s6-portable-utils 2.3.1.2
- nixpkgs unstable: s6-portable-utils-man-pages 2.3.1.1.2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms