This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: Bash -c without exiting


On 26 September 2007 15:09, patrickinminneapolis wrote:

> I modified Cygwin.bat to the following,
> bash --login -i -c 'cd /cygdrive/c && exec bash'
> and it still exits.

  Use double quotes; this batch file is parsed by cmd.exe, which doesn't
recognize single quotes, but it does recognise the '&&' token, so it breaks
the line there and attempts to run

bash --login -i -c 'cd /cygdrive/c

followed by (if that exits with no error status)

exec bash'

which it doesn't understand!

    cheers,
      DaveK
-- 
Can't think of a witty .sigline today....


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]