Advertisement

07.06.2007 at 07:22PM PDT, ID: 22680565
[x]
Attachment Details

Change Directory in CShell Script

Asked by adg in csh / tcsh, Shell Scripting

Tags: change, directory, script

Using CShell, is there a way to change the directory so that it remains changed after the script finishes?  For example if pwd is /a/b/c and I run a script that contains cd /a/b/x/y, when the script terminates pwb still returns /a/b/c.  Can I make it so that after the script terminates the current directory remains changed and pwd will return /a/b/x/y?Start Free Trial
[+][-]07.06.2007 at 07:55PM PDT, ID: 19436189

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: csh / tcsh, Shell Scripting
Tags: change, directory, script
Sign Up Now!
Solution Provided By: Tintin
Participating Experts: 1
Solution Grade: A
 
 
[+][-]07.06.2007 at 07:56PM PDT, ID: 19436190

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.06.2007 at 08:37PM PDT, ID: 19436252

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32