#9794: Terminal doesnt like cd'ing in scripts -----------------------------------------------+------------------------- Reporter: streak | Owner: nobody Type: bug | Status: new Priority: normal | Milestone: R1 Component: Applications/Command Line Tools | Version: R1/alpha4.1 Resolution: | Keywords: Blocked By: | Blocking: Has a Patch: 0 | Platform: x86 -----------------------------------------------+------------------------- Changes (by siarzhuk): * owner: jackburton => nobody * component: Applications/Terminal => Applications/Command Line Tools Comment: just have checked on hrev45711 Replying to [comment:1 streak]: > in Haiku's Terminal this script not work. That looks not true. Modify your script as below: {{{ cd /Data + ls -al exit; }}} and you should see the contents of /Data during run. > The script runs correctly but 'cd /Data' command does not change directory to /Data. the script is executed in child process and modifies the cwd of the that child process. The cwd of parent process (session of bash running in the Terminal) was not modified. Looks like the bash configuration issue. -- Ticket URL: <http://dev.haiku-os.org/ticket/9794#comment:2> Haiku <http://dev.haiku-os.org> Haiku - the operating system.