Hi all
Brian was correct it turns out there was another grep on my path,
its all been resolved now.
thanx all!
Arash
__
Be one who knows what they don't know,
Instead of being one who knows not what they don't know,
Thinking they know everything about
Hello,
On 4/18/05, Brian Dessent <[EMAIL PROTECTED]> wrote:
> Arash Partow wrote:
>
> > error message:
> > bash-2.05b$ ./test.sh
> > ./test.sh: line 3: [: too many arguments
> > Target platform is NOT Win32 via CYGWIN
> > bash-2.05b$
>
> WJFFM:
>
> $ ./test.sh
> Target platform is Win32 via CYG
On Mon, Apr 18, 2005 at 10:59:10AM -0400, Igor Pechtchanski wrote:
>On Mon, 18 Apr 2005, Arash Partow wrote:
>>Could someone tell me why the piece of bash script below is being
>>rejected as being erroneous on cygwin but works fine on other bash's
>>ie: linux and openbsd?
>
>I would imagine because
On Mon, 18 Apr 2005, Arash Partow wrote:
> Hi all,
>
> Could someone tell me why the piece of bash script below is being
> rejected as being erroneous on cygwin but works fine on other bash's
> ie: linux and openbsd?
I would imagine because the output of "uname -s" doesn't contain "CYGWIN"
on eit
Arash Partow wrote:
> error message:
> bash-2.05b$ ./test.sh
> ./test.sh: line 3: [: too many arguments
> Target platform is NOT Win32 via CYGWIN
> bash-2.05b$
WJFFM:
$ ./test.sh
Target platform is Win32 via CYGWIN
(both 1 and "1" work the same without error)
Are you sure that the grep in you
Sorry the script should have been:
#!/bin/bash
if [ `uname -s | grep -c 'CYGWIN'` -eq 1 ]; then
printf "Target platform is Win32 via CYGWIN\n";
else
printf "Target platform is NOT Win32 via CYGWIN\n";
fi
Still the same error message etc...
Arash Partow
__
Hi all,
Could someone tell me why the piece of bash script below is being
rejected as being erroneous on cygwin but works fine on other bash's
ie: linux and openbsd?
my current version of bash is update (2.05b).
#!/bin/bash
if [ `uname -s | grep -c 'CYGWIN'` -eq "1" ]; then
printf "Target platform
7 matches
Mail list logo