Ho notato che quando ho avviato una finestra di Terminale per errore e ho provato a chiuderla rapidamente premendo la X sulla finestra, ho ottenuto una finestra di dialogo come questa:
"Closing this window will terminate the running processes: login, bash, bash, perl."
Il mio computer era sotto carico pesante al momento e lento. Ho premuto annulla e l'ho provato di nuovo, si è chiuso silenziosamente.
Questo mi porta a credere che ci sia uno script Perl che carica ogni volta che avvio il mio terminale. Non sono stato in grado di ricreare il problema finora. Come posso controllare esattamente quali script vengono eseguiti quando apro il terminale?
1 /etc/profile
# System-wide .profile for sh(1)
if [ -x /usr/libexec/path_helper ]; then
eval '/usr/libexec/path_helper -s'
fi
if [ "${BASH-no}" != "no" ]; then
[ -r /etc/bashrc ] && . /etc/bashrc
fi
2 ~/.profile
(just user defined aliases)
3 ~/.bash_profile
# Setting PATH for MacPython 2.5
# The orginal version is saved in .bash_profile.pysave
PATH="/Library/Frameworks/Python.framework/Versions/Current/bin:${PATH}"
export PATH
test -r /sw/bin/init.sh && . /sw/bin/init.sh
##
# Your previous /Users/USERNAME/.bash_profile file was backed up as /Users/USERNAME/.bash_profile.macports-saved_2010-04-04_at_17:07:45
##
# MacPorts Installer addition on 2010-04-04_at_17:07:45: adding an appropriate PATH variable for use with MacPorts.
export PATH=/opt/local/bin:/opt/local/sbin:$PATH
# Finished adapting your PATH environment variable for use with MacPorts.
# MacPorts Installer addition on 2010-04-04_at_17:07:45: adding an appropriate MANPATH variable for use with MacPorts.
export MANPATH=/opt/local/share/man:$MANPATH
# Finished adapting your MANPATH environment variable for use with MacPorts.
#Add Some Color to "ls"
export CLICOLOR=1
export LSCOLORS=ExFxCxDxBxegedabagacad
##
# Your previous /Users/USERNAME/.bash_profile file was backed up as /Users/USERNAME/.bash_profile.macports-saved_2011-09-23_at_23:15:01
##
# MacPorts Installer addition on 2011-09-23_at_23:15:01: adding an appropriate PATH variable for use with MacPorts.
export PATH=/opt/local/bin:/opt/local/sbin:$PATH
# Finished adapting your PATH environment variable for use with MacPorts.
# My Aliases
(REMOVED ALIASES)
4 ~/.bashrc
(FILE DOESN'T EXIST)