Oleg,

Yes, that was perfectly on point.

The reason for the suggestion in the PS of my original message was that I was 
trying to emulate Cygwin's  bash.bat  script, which does a  cd  , thereby 
setting the working directory.

Of course, I missed out the much more critical parameters to cygwin.exe itself: 
 --login -i  !  That's the magic that sets up the environment, $PATH, etc.

Now I need to figure out a way to remove all these control characters (color) 
from the output, and suppress or reliably distinguish bash's prompt from 
program output.  I think I'll make the bash verb add a command to the beginning 
of all scripts that sets the prompt to nothing, and redirects the output of all 
but the last commands to /dev/null.

Thanks for your quick and accurate reply!

-Dan
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to