diff options
author | axel <axel@liljencrantz.se> | 2005-10-23 20:22:32 +1000 |
---|---|---|
committer | axel <axel@liljencrantz.se> | 2005-10-23 20:22:32 +1000 |
commit | ba6ad5025e7792471a2b31c3c5409d771007b19d (patch) | |
tree | 05b1216d6c55c3dcfbdcd4aa795d47180a7a31b5 /doc_src | |
parent | fc5e0ab367bfa76abb6d5717276e5cfd506697af (diff) |
Make sure USER variable is correct. Needed when using the su command.
darcs-hash:20051023102232-ac50b-4ed7c9de75ece8a1d9ba7ec5c086bde146436db9.gz
Diffstat (limited to 'doc_src')
-rw-r--r-- | doc_src/doc.hdr | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/doc_src/doc.hdr b/doc_src/doc.hdr index a7096e1f..c1e83b26 100644 --- a/doc_src/doc.hdr +++ b/doc_src/doc.hdr @@ -503,7 +503,7 @@ inherited by any commands started by fish. It is convention that exported variables are in uppercase and unexported variables are in lowercase. -Variables can be explicitly set to be exportes with the \c -x or \c +Variables can be explicitly set to be exported with the \c -x or \c --export switch, or not exported with the \c -u or \c --unexport switch. The exporting rules when creating or updating a variable are identical to the scoping rules for variables: @@ -557,7 +557,7 @@ echo $smurf \subsection variables-special Special variables The user can change the settings of \c fish by changing the values of -certain environment variables.These are: +certain environment variables. - \c BROWSER, which is the users preferred web browser. If this variable is set, fish will use the specified browser instead of the system default browser to display the fish documentation. - \c CDPATH, which is an array of directories in which to search for the new directory for the \c cd builtin. @@ -569,12 +569,15 @@ values of certain environment variables. The user can not change the values of t - \c _, which is the name of the currently running command. - \c history, which is an array containing the last commands that where entered -- \c HOME, which is the users home directory. This variable can be changed by the root user. +- \c HOME, which is the users home directory. This variable can only be changed by the root user. - \c PWD, which is the current working directory. - \c status, which is the exit status of the last foreground job to exit. If a job contains pipelines, the status of the last command in the pipeline is the status for the job. +- \c USER, which is the username. This variable can only be changed by the root user. -\c fish also uses several variables internally. Such variables are -prefixed with the string __FISH or __fish. These should be ignored by the user. +Variables whose name are in uppercase are exported to the commands +started by fish. \c fish also uses several variables internally. Such +variables are prefixed with the string __FISH or __fish. These should +be ignored by the user. \section builtin-overview Builtins |