Login | Register
My pages Projects Community openCollabNet

Discussions > issues > [Issue 1] New - command subst that changes directory broken

winbash
Discussion topic

Back to topic list

[Issue 1] New - command subst that changes directory broken

Reply

Author issues at winbash dot tigris dot org
Full name issues at winbash dot tigris dot org
Date 2003-03-16 06:29:08 PST
Message http://winbash.tigri​s.org/issues/show_bu​g.cgi?id=1

                  Summary: command subst that changes directory broken
                Component: winbash
                  Version: current
                 Platform: PC
                      URL:
               OS/Version: Windows 2000
                   Status: NEW
        Status Whiteboard:
                 Keywords:
               Resolution:
               Issue type: DEFECT
                 Priority: P3
             Subcomponent: www
               AssignedTo: seguin
               ReportedBy: seguin


a command substitution that changes directories will leave the
executing shell in the directory that the command being substituted
changed to.

for example, if cwd=~/foo and either x=$(cd ~/bar && pwd) or x=`cd
~/bar && pwd` is executed, cwd will now be ~/bar:

winbash $ pwd
c:/dev/tigris/winbash
winbash $ x=$(cd ~/downloads/ && pwd)
winbash $ pwd
c:/downloads
winbash $ x=`cd ~/ && pwd`
winbash $ pwd
c:/
winbash $

--------------------​--------------------​--------------------​---------
To unsubscribe, e-mail: issues-unsubscribe@w​inbash.tigris.org
For additional commands, e-mail: issues-help at winbash dot tigris dot org

« Previous message in topic | 1 of 1 | Next message in topic »

Messages

Show all messages in topic

[Issue 1] New - command subst that changes directory broken issues at winbash dot tigris dot org issues at winbash dot tigris dot org 2003-03-16 06:29:08 PST
Messages per page: