Re: variable after break

2006-07-12 Thread Dave
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

Re: variable

2006-06-20 Thread Igor Peshansky
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 > >

Re: variable

2006-06-20 Thread Igor Peshansky
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

Re: variable

2006-06-19 Thread prz
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

Re: variable

2006-06-19 Thread Igor Peshansky
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 > ;; >

Re: Variable read error? Multiple spaces

2006-04-27 Thread Siddhartha Shivshankar
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)

Re: Variable read error? Multiple spaces

2006-04-27 Thread Eric Blake
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

Re: Variable read error? Multiple spaces

2006-04-27 Thread Christopher Faylor
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

RE: Variable not set correctly in bash

2005-04-13 Thread Andre Dieball
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

Re: Variable not set correctly in bash

2005-04-12 Thread Brian Dessent
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