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 -->
#
7
(
permalink
)
01-14-2004
Ygor
Moderator
Join Date: Oct 2003
Location: -31.96,115.84
Posts: 1,226
You would have to run your cd script in your current shell, not a sub-shell, so...
. /path/to/script
...i.e dot space scriptname
Ygor
View Public Profile
Find all posts by Ygor