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]

Re: Backtick does not work


----- Original Message -----
From: "Menon, Girish (MED, WIPRO-GE MED)"


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

Check the permissions of your script.  It should at least be +x for the one who executes it.  Please be more specific on what
doesn't work?  Does echoing not work, say, if you add `echo $myenv' in your script?

By the way, this does not seem to be a cygwin problem.  Kindly check  for more info in http://www.cygwin.com/problems.html

Thanks!

Best Regards,

Carlo
------
Carlo Florendo
Astra Philippines Inc.
URL: http://www.hq.astra.ph/resources







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