This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Bash -c without exiting
- From: Igor Peshansky <pechtcha at cs dot nyu dot edu>
- To: patrickinminneapolis <patrickinminneapolis at gmail dot com>
- Cc: cygwin at cygwin dot com
- Date: Tue, 25 Sep 2007 17:43:01 -0400 (EDT)
- Subject: Re: Bash -c without exiting
- References: <12888624.post@talk.nabble.com>
- Reply-to: cygwin at cygwin dot com
On Tue, 25 Sep 2007, patrickinminneapolis wrote:
> I'd like to drop to the current directory like this,
>
> bash --login -i -c 'Drop to current directory'
>
> without exiting cygwin. Thanks.
Not Cygwin-specific. Try
bash --login -i -c 'cd /tmp && exec bash'
HTH,
Igor
--
http://cs.nyu.edu/~pechtcha/
|\ _,,,---,,_ pechtcha@cs.nyu.edu | igor@watson.ibm.com
ZZZzz /,`.-'`' -. ;-;;,_ Igor Peshansky, Ph.D. (name changed!)
|,4- ) )-,_. ,\ ( `'-' old name: Igor Pechtchanski
'---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow!
Belief can be manipulated. Only knowledge is dangerous. -- Frank Herbert
--
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/