S6-UNQUOTE(1)

πŸ“¦ version 2.3.1.2, in nixpkgs unstable

🌸 S6-UNQUOTE(1) β€” the s6-unquote manual, bestie edition 🌸

okay so real quick: this is the man page for s6-unquote, one of the s6-portable-utils girlies. she's a tiny little icon and she's about to undo some quoting for you. let's get into it πŸ’…


✨ NAME ✨

s6-unquote β€” unquotes a quoted string and writes it to stdout. that's it, that's the whole job. queen behavior fr πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

s6-unquote [-n] [-d delim] string

πŸ’– DESCRIPTION πŸ’–

so s6-unquote unquotes string, and like β€” string has to follow the syntax of the output strings from s6-quote(1). that's the vibe check it has to pass. no cap.

if it can't unquote string properly, it prints various warning or error messages to stderr. so it will tell you what went wrong, it's not gonna ghost you 😭

if it succeeds, it prints the result to stdout and exits 0. slay.

and for context, quoted strings can be produced via the s6-quote(1) or s6-quote-filter(1) programs β€” those are the ones making the quoted strings, and s6-unquote is the one taking them apart again. iconic teamwork ✨


πŸ’… OPTIONS πŸ’…

  • -n β€” do not print a trailing newline. just the raw result, no little newline garnish at the end 🫢
  • -d delim β€” delim is a list of characters that will be considered as delimiters (to start and end the quoted string). by default, only the double quote is such a character. and if delim is the empty string, s6-unquote interprets string as non-delimited, only escaped (i.e. the result of some s6-quote -u operation). very specific, very demure πŸŽ€

πŸ”₯ EXIT STATUS πŸ”₯

  • 111 β€” Temporary error.
  • 100 β€” Permanent error, such as a misuse.
  • 127 β€” Unable to execute program - not found.
  • 126 β€” Unable to execute program - other reason.

🌈 SEE ALSO 🌈

the whole friend group, honestly β€” go say hi to all of them:

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(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-filter(1), s6-update-symlinks(1), seekablepipe(1)

also, for the record: this man page is ported from the authoritative documentation at: https://skarnet.org/software/s6-portable-utils/s6-unquote.html


πŸ‘‘ AUTHORS πŸ‘‘

  • Laurent Bercot
  • Alexis <flexibeast@gmail.com> (man page port)

and that's the whole page, bestie. go unquote something and have a beautiful day πŸ’œ

Debian Β· April 18, 2022 β€” mwah, catch you on the next man page πŸ§šβ€β™€οΈπŸ’–

πŸ“¦ where this page comes from