The UNIX and Linux Forums
>
Top Forums
>
UNIX for Dummies Questions & Answers
cd in shell script
User Name
Remember Me?
Password
Google UNIX.COM
Forums
Portal
Register
Rules & FAQ
Contribute
Members List
Arcade
Search
Today's Posts
Mark Forums Read
Thread
:
cd in shell script
View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
#
3
(
permalink
)
01-14-2004
Perderabo
Unix Daemon
Join Date: Aug 2001
Location: Washington DC Area
Posts: 8,355
A shell script is executed in a sub process. If you use a cd command, that sub-process will change directories. But when the script finishes, the parent process resumes. A sub process cannot affect its parent's current directory.
Perderabo
View Public Profile
Find all posts by Perderabo