Difference between revisions of "Bash -c"

From wikieduonline
Jump to navigation Jump to search
Tags: Mobile web edit, Mobile edit
Line 11: Line 11:
 
* <code>[[bash -e]]</code>
 
* <code>[[bash -e]]</code>
 
* <code>[[bash -x]]</code>
 
* <code>[[bash -x]]</code>
[[bash -i]]
+
* <code>[[bash -i]]</code>
[[bash --rcfile]] .mybashrc -ci 'echo $FOO'
+
* <code>[[bash --rcfile]] .mybashrc -ci 'echo $FOO'</code>
  
 
== See also ==
 
== See also ==

Revision as of 13:51, 8 March 2023

-c string If the -c option is present, then commands are read from string.
If there are arguments after the string, they are assigned to the positional parameters, starting with $0.


Related

See also

Advertising: