Executing bash commands from the bash command line

Hamish Fawns fawnha@aie.act.edu.au
Thu Aug 1 00:06:00 GMT 2002


>
> bash -c "cd /cygdrive/c/myfolder ; exec bash"
>


Dear George,
    I did as you suggested however when I called "exec bash" after changing
the directory a new instance of bash was spawned but when a new instance of
bash was spawned it started in my home directory (~).

    Hamish


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/



More information about the Cygwin mailing list