Difference between revisions of "Set -x"

From wikieduonline
Jump to navigation Jump to search
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
{{lc}}
 
{{lc}}
<code>[[set -x]] print every command that is executed and every variable that is set to the [[standard output]]. Useful to [[debug]] scripts.</code>
+
<code>[[set -x]]</code> print every command that is executed and every variable that is set to the [[standard output]]. Useful to [[debug]] scripts.
  
 
Examples:
 
Examples:
 
   set -x [[&&]] [[npm run migrate]]
 
   set -x [[&&]] [[npm run migrate]]
 +
 +
== Related ==
 +
* [[Debug]]
 +
* <code>[[stdout]]</code>
  
 
== See also ==
 
== See also ==
 +
* {{stdout}}
 
* {{set}}
 
* {{set}}
 
* {{Bash}}
 
* {{Bash}}
  
 
[[Category:Bash]]
 
[[Category:Bash]]

Latest revision as of 11:38, 15 February 2024

Advertising: