prz wrote:
I am using a simple program with a loop
when getting out of the loop with break the variable $aid gets cleared
it was printed before the break and getting out of the loop
Any idea / hint ?
I don't believe this is cygwin specific. Have a read of the bash man page.
Hint: Not only a
On Tue, 20 Jun 2006, Igor Peshansky wrote:
> On Mon, 19 Jun 2006, prz wrote:
>
> > thanks for the update
> > a simple testcase
> > tempdba:/cygdrive/c/workdir:echo $OBJECT
> >
> > tempdba:/cygdrive/c/workdir:. ./testcase -a dt
^
There it is.
> > print object dt
> >
On Mon, 19 Jun 2006, prz wrote:
> thanks for the update
> a simple testcase
> tempdba:/cygdrive/c/workdir:echo $OBJECT
>
> tempdba:/cygdrive/c/workdir:. ./testcase -a dt
> print object dt
> tempdba:/cygdrive/c/workdir:. ./testcase -a dt
> print object dt
> tempdba:/cygdrive/c/workdir:. ./testcase
thanks for the update
a simple testcase
tempdba:/cygdrive/c/workdir:echo $OBJECT
tempdba:/cygdrive/c/workdir:. ./testcase -a dt
print object dt
tempdba:/cygdrive/c/workdir:. ./testcase -a dt
print object dt
tempdba:/cygdrive/c/workdir:. ./testcase -a dl
print object dt
tempdba:/cygdrive/c/workdir
On Mon, 19 Jun 2006, prz wrote:
> I have cygwin running o win/xp
> whenever I execute a script that accepts options like :
> while getopts "d:a:s:u:" option; do
> case "$option" in
>d) DBNAME=$OPTARG
> ;;
>a) OBJECT=$OPTARG
> ;;
>s) CREATOR=$OPTARG
> ;;
>
Thanks Chris, Eric, quoting the variable worked.
Eric Blake writes:
>It is an error on your part for not quoting properly. But this
>is not cygwin-specific, so I would advise getting a good
>tutorial on shell programming and reading it (the web has
>plenty of resources, google is your friend)
Siddhartha Shivshankar yahoo.com> writes:
>
> Hi. After I try to read the contents of a file containing
> multiple spaces into a bash variable, only one space is seen
>
> in the variable. Output similar to the following 2 space
> example is seen for 3 spaces as well. Is this an err
On Thu, Apr 27, 2006 at 04:08:38PM -0700, Siddhartha Shivshankar wrote:
>Hi. After I try to read the contents of a file containing
>multiple spaces into a bash variable, only one space is seen
>
>in the variable. Output similar to the following 2 space
>example is seen for 3 spaces as w
an Dessent
Sent: Mittwoch, 13. April 2005 08:03
To: cygwin@cygwin.com
Subject: Re: Variable not set correctly in bash
Andre Dieball wrote:
> NEW=$[ $OLD + 1 ]
That construct is a bash extension that is not part of the regular
bourne shell capability. On linux, /bin/sh is b
Andre Dieball wrote:
> NEW=$[ $OLD + 1 ]
That construct is a bash extension that is not part of the regular
bourne shell capability. On linux, /bin/sh is bash, so it works. On
Cygwin, /bin/sh is ash which is a more basic bourne shell that does not
have all the extra extensions t
10 matches
Mail list logo