|
From: SourceForge.net <no...@so...> - 2005-01-26 19:26:33
|
Read and respond to this message at: https://sourceforge.net/forum/message.php?msg_id=2961020 By: earnie <quote user=stifffe> When running the shell script "mybash" below in the MSYS environment a subshell is started that executes separately from the invoking shell. When the subshell is done and dies, is there a way to make the invoking script, which then gets control back again, be placed in the directory the subshell were in when it died? </quote> If you invoke the script as a separate process, then no, neither UNIX or WINDOWS will do this. I don't remember for sure but I believe the CMD syntax would be to use CALL FOO.BAT in the UNIX world you would source the file ``. /path/to/foo.bat''. Notice that the ``.'' character is followed by a space character. The bash shell has a builtin command named ``source'' that you could use instead of the ``.''. HTH Earnie ______________________________________________________________________ You are receiving this email because you elected to monitor this forum. To stop monitoring this forum, login to SourceForge.net and visit: https://sourceforge.net/forum/unmonitor.php?forum_id=290275 |