Difference between revisions of "Bash -c"

From wikieduonline
Jump to navigation Jump to search
Line 4: Line 4:
 
  -c string If the -c option is present, then commands are read from string.
 
  -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.
 
  If there are arguments after the string, they are assigned to the positional parameters, starting with $0.
 +
 +
 +
* [[Homebre installation]]: <code>/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"</code>
  
 
== Related ==
 
== Related ==

Revision as of 14:19, 19 February 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

bash -i
bash --rcfile .mybashrc -ci 'echo $FOO'

See also

Advertising: