scripting:posparams

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Last revision Both sides next revision
scripting:posparams [2015/08/06 02:29]
bill_thomson
scripting:posparams [2015/10/20 00:49]
anthony additional info for using set
Line 259: Line 259:
  
 It's wise to signal "end of options"​ when setting positional It's wise to signal "end of options"​ when setting positional
-parameters this way. If not, the dashes might be interpreted as an option ​swich+parameters this way. If not, the dashes might be interpreted as an option ​switch
 by ''​set''​ itself: by ''​set''​ itself:
  
Line 266: Line 266:
 set -- ... set -- ...
 set - ... set - ...
 +</​code>​
 +
 +Alternately this will also preserve any verbose (-v) or tracing (-x) flags, which may otherwise be reset by ''​set''​
 +<​code>​
 +set -$- ...
 </​code>​ </​code>​
  
  • scripting/posparams.txt
  • Last modified: 2018/05/12 18:04
  • by wayeoyuz