This is the mail archive of the cygwin@cygwin.com 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]

Backtick does not work


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


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