Difference between revisions of "Declare builtin"
Jump to navigation
Jump to search
Line 6: | Line 6: | ||
[[declare -x]] | [[declare -x]] | ||
+ | declare -x [[PWD]]="/srv/your-path" | ||
[[declare -r]] | [[declare -r]] |
Revision as of 12:12, 17 September 2022
- https://tldp.org/LDP/abs/html/declareref.html
- https://www.gnu.org/software/bash/manual/html_node/Bash-Builtins.html
declare -p
declare -x declare -x PWD="/srv/your-path"
declare -r
declare: -A: invalid option
See also
export
,env
,printenv
,declare, export -f
,/etc/environment
- builtin
Bash [ -c ]
,alias
,&&
, Bash history, Autocompletion,set
,unset
,export
,.bash_aliases, .bashrc and .bash profile
,PS1
,echo
,brace expansion
, Function,shopt
,trap
,set -e
,source
,PATH
,complete
,disown
,.hushlogin
,.bashrc
,builtin
,eval
,set
,$PATH
,$HOME
,TZ
,.profile
,-e, -i
,Builtin (Bash)
,mapfile
,~
, return (Bash), for, until,declare, dirname, basename, functions.sh
, Bash arithmetic expansion,shift, bash --rcfile, readonly, $1, $@
Advertising: