In the Terminal preferences, I'm able to configure the Terminal to "Open shells with:" -> "Command (complete path):" /opt/local/bin/bash
.
What options is the terminal passing when invoking this command? Terminal appears to run each shell as a login shell, so I'm assuming --login
is being passed?
Is there any Apple documentation that gives an overview of exactly what is being run when you open a terminal window?
/opt/local/bin/bash
, how doeslogin -pfq $USER $PROGRAM
change? Just so I understand your first paragraph, do you mean Terminal runslogin -pfq cwilson /opt/local/bin/-bash
? – cdwilson Jan 03 '14 at 02:18login -pfq cwilson /opt/local/bin/bash
. Then login executes bash, but passes-bash
inargv[0]
. – LaC Jan 15 '14 at 08:16