On Thu, Jan 29, 2009 at 5:54 PM, whitewall wrote:
> #! /cygdrive/c/cygwin/bin/bash
and this should probably just be
#!/bin/bash
After all, only cygwin tools will be able to understand /cygdrive,
meaning they'll also understand that /bin is the same as
/cygdrive/c/cygwin...
~Matt
--
Unsubscribe
On Thu, 29 Jan 2009, Mark J. Reed wrote:
On Thu, Jan 29, 2009 at 5:54 PM, whitewall wrote:
#! /cygdrive/c/cygwin/bin/bash
declare -i Red
declare -i Green
Red=10
Green=$Red+1
Since you've declared both Green and Red as integer, you should just
do Green=Red+1, without the dollar sign. Doing Gree
On Thu, Jan 29, 2009 at 5:54 PM, whitewall wrote:
>
> The text below is from a text file. If I type the commands line-by-line in
> the bash then the commands work as expected. If I save the commands in a
> text file and call the script I get the error message:
> ': not a valid identifier2: declar
On Thu, 29 Jan 2009, whitewall wrote:
The text below is from a text file. If I type the commands
line-by-line in the bash then the commands work as expected. If I
save the commands in a text file and call the script I get the error
message:
': not a valid identifier2: declare: 'Red
': not a va
4 matches
Mail list logo