[Bio-Linux] help regarding BLAST running

Tony Travis tony.travis at ed.ac.uk
Mon Feb 4 12:24:32 EST 2013


On 04/02/13 14:28, Tim Booth wrote:
> Hi Tony,
>
>> One other thing to note is that you need to set the Gnome Terminal to
>> run as a login shell to source the correct files from /etc/profile.d and
>> ~/.profile. The Gnome Terminal does not run as a login shell by default,
>> because it is a sub-shell that only sources ~/.bashrc, and it doesn't
>> inherit a shell login environment that a command-line sub-shell would.
>> This is a known problem with Gnome Terminal "bash" sessions.
>>
>>> Gnome Terminal / Edit / Profile Preferences / Title and Command / Command [x] Run command as a login shell
>
> I didn't know about this, but it won't affect most Bio-Linux users who
> will be in ZSH rather than BASH.

Hi, Tim.

I've just checked and found that exactly the same problem exists for 
"zsh". On a command-line login shell, these startup files are sourced:

   /etc/zsh/zshenv
   /etc/zsh/zprofile
   /etc/zsh/zshrc
   /etc/zsh/zlogin

Invoking an interactive sub-shell from the login shell only sources:

   /etc/zsh/zshenv
   /etc/zsh/zshrc

Setting Gnome Terminal to run "zsh" as a login shell sources:

   /etc/zsh/zshenv
   /etc/zsh/zprofile
   /etc/zsh/zshrc
   /etc/zsh/zlogin

By default Gnome Terminal runs "zsh" as an interactive shell and only 
sources:

   /etc/zsh/zshenv
   /etc/zsh/zshrc

HTH,

   Tony.



More information about the Bio-linux-list mailing list