Difference between revisions of "Declare builtin"

From wikieduonline
Jump to navigation Jump to search
Tags: Mobile web edit, Mobile edit
 
(12 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 +
{{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]]                            -x export
 +
  declare -x [[PWD]]="/srv/your-path"
  
 +
[[declare -r]]
  
 +
declare: -A: [[invalid option]]
 +
 +
 +
[[export]] DATE=$(date -I); echo $DATE
  
 
== See also ==
 
== See also ==
 
* {{export}}
 
* {{export}}
 +
* {{builtin}}
 +
* {{variable}}
 +
* {{Bash}}
 +
 +
 +
[[Category:Bash]]

Latest revision as of 11:21, 12 February 2024

Advertising: