💾 Archived View for rawtext.club › ~s0kx › pure-sh-bible › internal-and-enviroment-variables.gmi captured on 2021-12-03 at 14:04:38. Gemini links have been rewritten to link to archived content

View Raw

More Information

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

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

"$-"