💾 Archived View for rawtext.club › ~s0kx › pure-sh-bible › internal-and-enviroment-variables.gmi captured on 2022-03-01 at 15:18:26. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2021-12-03)

-=-=-=-=-=-=-

Internal and enviroment variables

Open the user's preferred text editor

"$EDITOR" "$file"

# NOTE: This variable may be empty, set a fallback value.
"${EDITOR:-vi}" "$file"

Get the current working directory

This is an alternative to the pwd built-in.

"$PWD"

Get the PID of the current shell

"$"

Get the current shell options

"$-"