delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/08/12/20:02:39

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-Injected-Via-Gmane: http://gmane.org/
To: cygwin AT cygwin DOT com
From: Rolf Campbell <Endlisnis AT mailc DOT net>
Subject: Re: Backtick does not work
Date: Tue, 12 Aug 2003 20:02:17 -0400
Lines: 30
Message-ID: <bhbv69$t0k$1@sea.gmane.org>
References: <EF3C4DA34DEFD411AE6200A0C9F2A3581ADE4B66 AT uswaumsx06medge DOT med DOT ge DOT com>
Mime-Version: 1.0
X-Complaints-To: usenet AT sea DOT gmane DOT org
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.5b) Gecko/20030723 Thunderbird/0.1
X-Accept-Language: en-us, en
In-Reply-To: <EF3C4DA34DEFD411AE6200A0C9F2A3581ADE4B66@uswaumsx06medge.med.ge.com>

That's not a bash script, that's an 'sh' script.  Which is ash on 
cygwin.  Maybe ash doesn't support back-tick?  If you change your 
/bin/sh to /bin/bash it should work.

Menon, Girish (MED, WIPRO-GE MED) wrote:
> From the bash shell the ` (backtick or command execution) work. But when
> I spawn a process and execute a shell script which contains the back
> ticks, the process just chokes.
> 
> For example, a simple shell script like
> 	#!/bin/sh
> 	..
> 	..
> 	myenv=`/bin/env | grep CYGWIN`
> 	..
> 	..
> 
> I am able to execute this script properly from the bash shell (as any
> user on the system). I am not getting any error at all from the
> execution of the script. It just quits. I checked the error code too. It
> is 0.
> But this same script when executed via a spawned process does not work.
> 
> Any help?
> 
> Girish
> 
> 
> 



--
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019