Re: OT: environment variables, job control

From: Jonathan Chen (jonc_at_chen.org.nz)
Date: 04/30/04

  • Next message: Louis LeBlanc: "Re: non-interactive password"
    Date: Sat, 1 May 2004 00:57:30 +1200
    To: Jamie <jamie@gnulife.org>
    
    

    On Thu, Apr 29, 2004 at 11:33:21PM -0500, Jamie wrote:
    > I'm using FreeBSD 4.9. Hopefully this is not too far off-topic.
    >
    > My login shell is set to /bin/csh. Why is it that when I:
    >
    > % /bin/sh
    > $ echo $SHELL
    >
    > I get:
    > $ /bin/csh

    Because $SHELL is set by the login process and not the shell. /bin/sh
    doesn't invoke any special processing when it is invoked
    (/usr/local/bin/bash on the other does quite a bit). Try it out on
    other UNIXes, and the behaviour is the same.

    -- 
    Jonathan Chen <jonc@chen.org.nz>
    ----------------------------------------------------------------------
                       "Lots of folks confuse bad management with destiny"
                                                             - Kin Hubbard
    _______________________________________________
    freebsd-questions@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-questions
    To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"
    

  • Next message: Louis LeBlanc: "Re: non-interactive password"

    Relevant Pages

    • Re: [SLE] 9.1 is sloooooowwww
      ... >> It boots in about the same amount of time, till it gets to the login ... After that the login process is much slower, when KDE gets ... On my machine it takes about 37 seconds for the shell to come up. ...
      (SuSE)
    • Re: how to write a program that takes arguments from commandline?
      ... I assume argc contains the number of ... programs are often invoked from a shell ... Shells *can* use spaces to delimit arguments, ... like for constructing the arguments for the programs you invoke. ...
      (comp.lang.c)
    • Looking for a extensible shell for debug purpose
      ... process using IPC. ... Now I want to add a thread to this program to start shell, ... extensible shell, to enter command, then invoke the corresponding ... like lua, can embedded into the program, and by running lua script to ...
      (comp.os.linux.development.apps)
    • Re: How Do I edit $PATH in Suse 10.1
      ... If your login process is not the command line, ... using /bin/bash as your shell, but something else (ash, csh, zsh, or ... correct file - one that is only run _once_ at login (such as ... you get the runaway path problem you ...
      (alt.os.linux.suse)
    • Re: without shell
      ... >> These commands invoke shell indeed. ... > sequence rather than a single string. ... On UNIX, os.popen is posix.popen, is a simple wrapper ...
      (comp.lang.python)