From 754bbf7a25a8dda49b5d08ef0d0443bbf5af0e36 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Sun, 7 Apr 2024 13:41:34 -0500 Subject: new repository --- devdocs/bash/bourne-shell-variables.html | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 devdocs/bash/bourne-shell-variables.html (limited to 'devdocs/bash/bourne-shell-variables.html') diff --git a/devdocs/bash/bourne-shell-variables.html b/devdocs/bash/bourne-shell-variables.html new file mode 100644 index 00000000..85235af9 --- /dev/null +++ b/devdocs/bash/bourne-shell-variables.html @@ -0,0 +1,16 @@ +

Bourne Shell Variables

Bash uses certain shell variables in the same way as the Bourne shell. In some cases, Bash assigns a default value to the variable.

CDPATH
+

A colon-separated list of directories used as a search path for the cd builtin command.

HOME
+

The current user’s home directory; the default for the cd builtin command. The value of this variable is also used by tilde expansion (see Tilde Expansion).

IFS
+

A list of characters that separate fields; used when the shell splits words as part of expansion.

MAIL
+

If this parameter is set to a filename or directory name and the MAILPATH variable is not set, Bash informs the user of the arrival of mail in the specified file or Maildir-format directory.

MAILPATH
+

A colon-separated list of filenames which the shell periodically checks for new mail. Each list entry can specify the message that is printed when new mail arrives in the mail file by separating the filename from the message with a ‘?’. When used in the text of the message, $_ expands to the name of the current mail file.

OPTARG
+

The value of the last option argument processed by the getopts builtin.

OPTIND
+

The index of the last option argument processed by the getopts builtin.

PATH
+

A colon-separated list of directories in which the shell looks for commands. A zero-length (null) directory name in the value of PATH indicates the current directory. A null directory name may appear as two adjacent colons, or as an initial or trailing colon.

PS1
+

The primary prompt string. The default value is ‘\s-\v\$ ’. See Controlling the Prompt, for the complete list of escape sequences that are expanded before PS1 is displayed.

PS2
+

The secondary prompt string. The default value is ‘> ’. PS2 is expanded in the same way as PS1 before being displayed.

+

+ Copyright © 2000, 2001, 2002, 2007, 2008 Free Software Foundation, Inc.
Licensed under the GNU Free Documentation License.
+ https://www.gnu.org/software/bash/manual/html_node/Bourne-Shell-Variables.html +

+
-- cgit v1.2.3