Bill asked:
>  Is there a good way to approach this sort of problem?

I've done this.  Use   spawn  dyadically.  For example:

           load'task'
           cmd =: noun define
        pwd
        cd ..
        pwd
        )
           cmd spawn 'bash'

The left hand argument is the stdin to the program named in the right hand 
argument (look, I got the sides right!).  The output is the stdout (and stderr).

You'll have to fiddle with the arguments to bash a bit (to get the $PATH right, 
 to make it load your profile, to make sure the stdin is interpreted as a 
script, not as interactive, etc).  

Also, if you're only cd'ing once, then once I commit my changes to task, you'll 
have the option to name the working directory in the right hand argument 
(you'll link it with  ;  ).

If you're only trying to cd to your Cygwin home dir, then you might not even 
need to wait for that -- you could using bash's --login parameter (I think).

I'll post a more considered reply later, if you like.  In a bit of a hurry at 
the moment.

-Dan


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

Reply via email to