|
From: SourceForge.net <no...@so...> - 2005-01-26 18:01:10
|
Read and respond to this message at: https://sourceforge.net/forum/message.php?msg_id=2960869 By: stifffe This is probably another stupid techie question.. 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? This is the "my.bat" file below were things work the way I want :) cd ..\..\libtool1.5\tests rem I am a windows .bat file and I will do some stuff here in the "tests" subdirectory rem I will now return. My caller will be placed in the subdirectory "tests" too, after I am dead. pause This is the "mybash" script file below that needs some help :( #!/bin/sh cd ../../libtool1.5/tests pwd # do some stuff here in the "tests" subdirectory # I will now return. I would like to place my caller in the subdirectory "tests" too, but I cannot. # I there anyone out there that can help me out? Sorry to bother u guys with such trivia .. B cool ______________________________________________________________________ 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 |