Re: Odd BASH behavior...

From: mjt (mjtobler_at_removethis_consultant.com)
Date: 12/04/03

  • Next message: mjt: "Re: Newbie! How to learn Bash shell online ?"
    Date: Thu, 04 Dec 2003 01:31:46 GMT
    
    

    On Wed, 3 Dec 2003 10:02:56 -0600, "Hawk" <jedi001@netscape.net> wrote:

    > Here's where the oddity kicks in ... I re-exported my path to add
    > '/usr/sbin' back but programs in that dir

    # There are 3 different types of shells in bash: the login shell,
    # normal shell and interactive shell. Login shells read ~/.profile
    # and interactive shells read ~/.bashrc; in our setup, /etc/profile
    # sources ~/.bashrc - thus all settings made here will also take
    # effect in a login shell.
    # NOTE: It is recommended to make language settings in ~/.profile
    # rather than here, since multilingual X sessions would not work
    # properly if LANG is over-ridden in every subshell.

    ... you might also want to run 'chkrootkit'
    .

    -- 
    ///    Michael J. Tobler: motorcyclist, surfer, skydiver,    \\\ 
    \\\ and author: "Inside Linux", "C++ HowTo", "C++ Unleashed" ///
    Personifiers Unite!  You have nothing to lose but Mr. Dignity!
    

  • Next message: mjt: "Re: Newbie! How to learn Bash shell online ?"

    Relevant Pages

    • Re: Where to put shell settings under Suse ?
      ... For runlevel 3, ... page for your shell. ... For a GUI login, your display manager is the login shell, and you should see ... Then xdm runs the Xsession script as the user. ...
      (comp.os.linux.misc)
    • Re: Issue with the script command in users .kshrc and .bashrc files
      ... One approach is to replace the login shell (in ... Installed-Size: 204 ... Package: pdmenu ...
      (comp.unix.shell)
    • Re: Freeze accounts
      ... Setting their login shell to /bin/false (and later, ... block all account access. ... And traditionally the ftp ...
      (Debian-User)
    • Re: set the environment variable at boot time
      ... and that seems to be where you've stuck your script. ... shell configuration such as /etc/profile. ... Depends on your distribution, and the shell you are using. ... login shell, and with few exceptions, the ...
      (comp.os.linux.misc)
    • Re: about seting file permission by default
      ... From 'man bash', the INVOCATION section: ... "When bash is invoked as an interactive login shell, ... .profile as already suggested .bashrc. ... "When an interactive shell that is not a login shell is started, ...
      (comp.os.linux.misc)