CLEANNAME(1plan9)
okay bestie, welcome to cleanname from the 1plan9 manual section β CLEANNAME(1plan9), iykyk π
NAME π§Ό
cleanname β clean a path name π
SYNOPSIS β¨
cleanname [ -d pwd ] names ...
DESCRIPTION π
okay so for each file name argument, cleanname does its thing by lexical processing only and prints the shortest equivalent string that names the same (possibly hypothetical) file. no cap. π«§
it eliminates multiple and trailing slashes, and it lexically interprets . and .. directory components in the name. yes, it's giving path-glow-up β¨
-d pwdβ if the-doption is present, unrooted names are prefixed withpwd/before processing. π
lexical only, bestie. it's string surgery, not filesystem snooping. π₯
SOURCE π
/src/cmd/cleanname.c
SEE ALSO π
that's the whole page π source file: /src/cmd/cleanname.c; manual tag/version: <rainbow>CLEANNAME(1plan9)</rainbow>; date: the footer didn't give me one bestie, just the tag. mwah π
π¦ where this page comes from
- debian bookworm: 9base 1:6-13 Β· Lucent
- debian trixie: 9base 1:6-14 Β· Lucent
- ubuntu jammy: 9base 1:6-11 Β· Lucent
- ubuntu noble: 9base 1:6-14 Β· Lucent
- ubuntu questing: 9base 1:6-15
- ubuntu resolute: 9base 1:6-15build1 Β· Lucent
- ubuntu stonking: 9base 1:6-15build1 Β· Lucent
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms