S6-BASENAME(1)

πŸ“¦ version 2.3.1.2, in nixpkgs unstable

πŸ’… s6-basename β€” the basename one, but make it s6

okay so this is s6-basename, and it lives in the General Commands Manual section (1) β€” the classic "commands you just type" neighborhood. It's the s6-portable-utils glow-up of a utility you already know and love, and honestly? she ate. ✨


🌸 SYNOPSIS 🌸

s6-basename [-n] path [suffix]

bestie, that's the whole vibe: hand her a path, optionally hand her a suffix, and she'll give you the basename. πŸ’–


πŸ¦‹ DESCRIPTION πŸ¦‹

s6-basename acts as the generic basename[1] utility. That's it, that's the whole personality β€” she's the standard basename you know, showing up in s6-portable-utils form. No cap. 🫢


✨ OPTIONS ✨

πŸŽ€ Standard options

None. Literally none. Zero. The standard option list is empty and she's at peace with that. πŸ™ˆ

πŸ’… Non-standard options

  • -n β€” do not print a trailing newline after the output. That's the one. That's the whole non-standard menu. Main character energy. πŸ‘‘

πŸ”₯ EXIT STATUS πŸ”₯

  • 111 β€” temporary error. Like, it might work next time, give it a sec. πŸ•
  • 100 β€” permanent error, such as a misuse. You did something she can't forgive. 😭
  • 127 β€” unable to execute program β€” not found. Where did it go?? πŸ’€
  • 126 β€” unable to execute program β€” other reason. It's there, but it's being difficult. πŸ™ƒ

🧚 SEE ALSO 🧚

the whole s6-portable-utils friend group, fr fr β€” they all pull up together:

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

[1] β€” the footnote link, iykyk: https://pubs.opengroup.org/onlinepubs/9799919799/utilities/basename.html

🫢 real talk: this man page is ported from the authoritative documentation at https://skarnet.org/software/s6-portable-utils/s6-basename.html

🌈 STANDARDS 🌈

s6-basename is suitable as a basename[1] program conforming to . β€” yes that's literally how it reads, trailing blank and all, I'm not out here editing the source, bestie. 🌸


πŸ‘‘ AUTHORS πŸ‘‘

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

and that's the page!! brought to you by Debian, dated April 18, 2022 β€” the footer said so, and I would never gatekeep a citation date from you. ⭐ πŸ’œ πŸ¦‹

πŸ“¦ where this page comes from