Difference between revisions of "Bash -c"
Jump to navigation
Jump to search
Line 2: | Line 2: | ||
* https://stackoverflow.com/questions/20858381/what-does-bash-c-do | * https://stackoverflow.com/questions/20858381/what-does-bash-c-do | ||
− | -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. |
− | |||
Revision as of 09:59, 13 December 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.
- Homebrew installation:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Related
See also
command, bash -c
Bash [ -c ]
,alias
,&&
, Bash history, Autocompletion,set
,unset
,export
,.bash_aliases, .bashrc and .bash profile
,PS1
,echo
,brace expansion
, Function,shopt
,trap
,set -e
,source
,PATH
,complete
,disown
,.hushlogin
,.bashrc
,builtin
,eval
,set
,$PATH
,$HOME
,TZ
,.profile
,-e, -i
,Builtin (Bash)
,mapfile
,~
, return (Bash), for, until,declare, dirname, basename, functions.sh
, Bash arithmetic expansion,shift, bash --rcfile, readonly, $1, $@
Advertising: