Difference between revisions of "Declare builtin"
Jump to navigation
Jump to search
Line 5: | Line 5: | ||
[[declare -p]] | [[declare -p]] | ||
− | [[declare -x]] | + | [[declare -x]] -x export |
declare -x [[PWD]]="/srv/your-path" | declare -x [[PWD]]="/srv/your-path" | ||
Revision as of 11:20, 12 February 2024
- https://tldp.org/LDP/abs/html/declareref.html
- https://www.gnu.org/software/bash/manual/html_node/Bash-Builtins.html
declare -p
declare -x -x export declare -x PWD="/srv/your-path"
declare -r
declare: -A: invalid option
See also
export
,env
,printenv
,declare, export -f
,/etc/environment
- builtin
- Variable, Environment variables,
declare
, Type checking 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: