X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org From: "Dave Korn" To: References: <12888624 DOT post AT talk DOT nabble DOT com> <12901775 DOT post AT talk DOT nabble DOT com> Subject: RE: Bash -c without exiting Date: Wed, 26 Sep 2007 15:13:56 +0100 Message-ID: <001d01c80047$79fc8750$2e08a8c0@CAM.ARTIMI.COM> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <12901775.post@talk.nabble.com> Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com 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/