GETCWD(1)
π GETCWD(1) π
okay so bestie, this is GETCWD(1) from the General Commands Manual β itβs the execline girlie that stores your current working directory into a given environment variable, then executes a program. slay.
β¨ NAME β¨
getcwd β store current working directory into a given environment variable, then executes a program π
πΈ SYNOPSIS πΈ
getcwd [-E | -e] var prog...
π¦ DESCRIPTION π¦
getcwd stores a fully resolved absolute path (i.e. without any .. or symbolic link components) to its current working directory into the var variable, then exec(3)s into prog with its arguments. no cap.
var must be given without a dollar! β οΈ
var must not contain the character β=β.
Unlike the pwd(1) POSIX command, getcwd does not depend on the PWD environment variable and will exhibit a consistent behaviour no matter the environment. itβs giving dependable, periodt.
π OPTIONS π
-eβ No autoimport. This is the default. like, itβs already the vibe unless you say otherwise.-Eβ Autoimport. Instead ofexec(3)ingintoprog...,exec(3)intoimportas -ui var var prog.... This substitutesvarinto the command line instead of putting it into the environment. big-brain move, honestly.
π₯ SEE ALSO π₯
go check out: emptyenv(1), envfile(1), exec(1), execline-cd(1), execline-umask(1), exit(1), export(1), fdblock(1), fdclose(1), fdmove(1), fdreserve(1), fdswap(1), getpid(1), heredoc(1), piperw(1), posix-cd(1), posix-umask(1), pwd(1), redirfd(1), trap(1), tryexec(1), unexport(1), wait(1), withstdinas(1), exec(3)
This man page is ported from the authoritative documentation at: https://skarnet.org/software/execline/getcwd.html
π AUTHORS π
- Laurent Bercot
Alexis <flexibeast@gmail.com>(man page port)
π okay bye bestie β this oneβs Debian-coded, dated February 14, 2021, and filed under GETCWD(1). mwah π«Ά
π¦ 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