EXECLINE-CD(1)
π EXECLINE-CD π
Ok so bestie, grab a snack, because this one is a tiny page from the General Commands Manual and honestly it's giving "small but mighty" energy β¨. It's called execline-cd and it does exactly two things, and it does them flawlessly, no cap π
πΈ NAME πΈ
execline-cd β changes the current working directory to a directory you pick, and then executes a program π«Ά
π SYNOPSIS π
execline-cd dir prog...
π DESCRIPTION π
Okay so here's the whole vibe, fr fr. execline-cd performs a chdir(2) system call on dir, and then exec(3)s into prog... π¦
That's it. That's the whole main character arc. Walk into the new folder, then become the program. Iconic behaviour honestly.
By default, execline-cd can also be invoked as cd: there's a cd program, and it's a symbolic link to execline-cd. Very demure, very mindful π.
β οΈ but wait, there's a plot twist β whenexeclinehas been configured with the--enable-pedantic-posixoption, thecdbinary is a symbolic link to theposix-cd(1)binary instead. So acdcommand in anexeclinescript will invokeposix-cd(1)instead ofexecline-cd. Different link, different bestie π
And the reassuring part, because I know you were about to panic π: existing scripts that call cd will keep working no matter the chosen configuration. Slay. Your scripts are safe, periodt π
π₯ SEE ALSO π₯
All the friendgroup links, in order, so you have the whole squad:
emptyenv(1), envfile(1), exec(1), execline-umask(1), exit(1), export(1), fdblock(1), fdclose(1), fdmove(1), fdreserve(1), fdswap(1), getcwd(1), getpid(1), heredoc(1), piperw(1), posix-cd(1), posix-umask(1), redirfd(1), trap(1), tryexec(1), unexport(1), wait(1), withstdinas(1), chdir(2), exec(3)
This man page is ported from the authoritative documentation at: https://skarnet.org/software/execline/execline-cd.html π
β¨ AUTHORS β¨
- Laurent Bercot
- Alexis <flexibeast@gmail.com> (man page port) π
kay that's the whole page, you ate that, go chdir(2) into your best life and then exec(3) into something fabulous π
π
mwah π β this little port is from Debian, dated February 14, 2021, and that's the EXECLINE-CD(1) page, signed, sealed, delivered π«Ά
π¦ where this page comes from
- nixpkgs unstable: execline 2.9.9.2
- nixpkgs unstable: execline-man-pages 2.9.9.1.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms