Re: bash Shell behaving weird

From: Barry Margolin (barry.margolin_at_level3.com)
Date: 04/29/03


Date: Tue, 29 Apr 2003 14:35:24 GMT

In article <d58bb977.0304290633.4fc6f6ac@posting.google.com>,
Raymond Tan <raymond_tan@yahoo.com> wrote:
>Hi,
> I wrote a simple shell script to goto a project directory but
>when i execute the script it didn't change the directory. I can
>manually change the directory in the terminal command prompt.
>Any ideas what going on with the unix shell ?

Read the comp.unix.questions FAQ for the explanation of why programs can't
change the calling shell's directory.

-- 
Barry Margolin, barry.margolin@level3.com
Genuity Managed Services, a Level(3) Company, Woburn, MA
*** DON'T SEND TECHNICAL QUESTIONS DIRECTLY TO ME, post them to newsgroups.
Please DON'T copy followups to me -- I'll assume it wasn't posted to the group.


Relevant Pages

  • Re: bash Shell behaving weird
    ... >> I wrote a simple shell script to goto a project directory but ... >>when i execute the script it didn't change the directory. ... True, but an alias can. ...
    (comp.unix.shell)
  • Re: bash Shell behaving weird
    ... > I wrote a simple shell script to goto a project directory but ... > when i execute the script it didn't change the directory. ... > Shell script: ...
    (comp.unix.shell)
  • bash Shell behaving weird
    ... I wrote a simple shell script to goto a project directory but ... when i execute the script it didn't change the directory. ... manually change the directory in the terminal command prompt. ... Shell script: ...
    (comp.unix.shell)
  • Re: kernel NULL pointer deref in pipe() - hotplug in initramfs
    ... kernel OOPSes on every hotplug invocation. ... for a shell script it's just more likely to contain ... static struct inode * get_pipe_inode ... Or like this (without messing up with goto): ...
    (Linux-Kernel)
  • Re: [kde-linux] Mounting with exec flag
    ... And I can copy a shell script to both devices and then execute ... UDEV config problem [if KDE uses UDEV info to mount devices) (I use ...
    (KDE)