Difference between revisions of "Declare builtin"

From wikieduonline
Jump to navigation Jump to search
 
(8 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
{{lowercase}}
 
{{lowercase}}
 +
* https://tldp.org/LDP/abs/html/declareref.html
 +
* https://www.gnu.org/software/bash/manual/html_node/Bash-Builtins.html
  
  declare -p
+
  [[declare -p]]
  
  declare -x
+
  [[declare -x]]                            -x export
 +
  declare -x [[PWD]]="/srv/your-path"
  
  declare -r
+
  [[declare -r]]
  
 
  declare: -A: [[invalid option]]
 
  declare: -A: [[invalid option]]
  
 +
 +
[[export]] DATE=$(date -I); echo $DATE
  
 
== See also ==
 
== See also ==
 
* {{export}}
 
* {{export}}
 +
* {{builtin}}
 +
* {{variable}}
 +
* {{Bash}}
  
  
 
[[Category:Bash]]
 
[[Category:Bash]]

Latest revision as of 11:21, 12 February 2024

Advertising: