Noté que cuando inicié una ventana de Terminal por accidente y traté de cerrarla rápidamente presionando la X en la ventana, obtuve un cuadro de diálogo como este:
"Closing this window will terminate the running processes: login, bash, bash, perl."
Mi computadora estaba bajo una carga pesada en ese momento y lenta. Pulsé Cancelar, y lo intenté de nuevo, se cerró silenciosamente.
Esto me lleva a creer que hay un script de Perl que se carga cada vez que inicio mi terminal. No he podido volver a crear el problema hasta ahora. ¿Cómo puedo verificar exactamente qué scripts se ejecutan cuando abro la Terminal?
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)