Re: Backtick does not work

2003-08-14 Thread Rolf Campbell
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 pro

Re: Backtick does not work

2003-08-14 Thread Carlo Florendo
> 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. Ash supports the backtick. The section of the script which Girish posted should work without problems in bash, sh, an

Backtick does not work

2003-08-14 Thread 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`

Re: Backtick does not work

2003-08-14 Thread Carlo Florendo
- 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 >