bash: Word splitting but when?

2008-10-22 Thread sbremal
Hi All, Trying to get the right form of quoting and command substitution with output containing spaces. Given the following two lines in a bash script: x=$(echo '1 2 3 x') y="$(echo '1 2 3 x')" According to bash manual: "The shell scans the results of parameter expansion, command subst

RE: bash: Word splitting but when?

2008-10-22 Thread sbremal
Again, 'cause clever mail client removed multiple spaces... --- Hi All, Trying to get the right form of quoting and command substitution with output containing spaces. Given the following two lines in a bash script: x=$(echo '1 2 3 x') y="$(echo '1 2 3 x')" According to bash manual:

Re: bash: Word splitting but when?

2008-10-22 Thread Brian Dessent
[EMAIL PROTECTED] wrote: > the ouput of $(echo '1 2 3 x') should go through word splitting and x Word splitting does not occur in the right-hand side of an assignment. >From the manual: A variable may be assigned to by a statement of the form name=[value] If va

Re: bash: Word splitting but when?

2008-10-22 Thread Mark J. Reed
2008/10/22 sbremal > Hi All, > > Trying to get the right form of quoting and command substitution with output > containing spaces. > > Given the following two lines in a bash script: > > x=$(echo '1 2 3 x') > y="$(echo '1 2 3 x')" Those are pretty much equivalent, but not because of when s

RE: bash: Word splitting but when?

2008-10-22 Thread Morche Matthias
Not cygwin related. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Wednesday, October 22, 2008 3:55 PM To: cygwin@cygwin.com Subject: bash: Word splitting but when? Hi All, Trying to get the right form of quoting and command su

RE: bash: Word splitting but when?

2008-10-22 Thread sbremal
Thank you for pointing out that section of the manual. Surely this explains the behaviour... Cheers, Balazs > Date: Wed, 22 Oct 2008 07:14:19 -0700 > From: [EMAIL PROTECTED] > To: cygwin@cygwin.com > Subject: Re: bash: Word splitting but when? > > [EMAIL PROTECTED] wrote: > >> the ouput of $(ec

Re: cygserver 1.5.25-15 slows down logoff

2008-10-22 Thread Sybille Ebert
>>> I can reproduce it, too. However, I can not reproduce it on Windows >>> Server 2008 x64 so it seems a problem of the NT 5.2 kernel alone. >>> I tried debugging and changed a couple of places in the DLL as well >>> as in cygrunsrv trying to track it down. The hang does not occur in >>> Cygwin