Re: Shell scripting problem -- help, please!

2005-08-29 Thread Otto Moerbeek
On Fri, 26 Aug 2005, Otto Moerbeek wrote: > On Fri, 12 Aug 2005, Dave Anderson wrote: > > > ** Reply to message from Otto Moerbeek <[EMAIL PROTECTED]> on Wed, 10 Aug > > 2005 21:18:09 +0200 (CEST) > > > > >I took some time to look into this. After some head scratching and > > >staring at code,

Re: Shell scripting problem -- help, please!

2005-08-26 Thread Otto Moerbeek
On Fri, 12 Aug 2005, Dave Anderson wrote: > ** Reply to message from Otto Moerbeek <[EMAIL PROTECTED]> on Wed, 10 Aug > 2005 21:18:09 +0200 (CEST) > > >I took some time to look into this. After some head scratching and > >staring at code, I tested this behaviour using both the '88 and '93 > >ver

Re: Shell scripting problem -- help, please!

2005-08-12 Thread Dave Anderson
** Reply to message from Otto Moerbeek <[EMAIL PROTECTED]> on Wed, 10 Aug 2005 21:18:09 +0200 (CEST) >I took some time to look into this. After some head scratching and >staring at code, I tested this behaviour using both the '88 and '93 >versions the AT&T version of ksh on Solaris. They both ha

Re: Shell scripting problem -- help, please!

2005-08-10 Thread Otto Moerbeek
On Wed, 3 Aug 2005, Otto Moerbeek wrote: > > On Wed, 3 Aug 2005, Dave Anderson wrote: > > > Something's screwy here, using the 'set -A' command in /bin/sh on > > 3.7-release. AFAICT the complicated file-match expression should (in > > this case) produce the same results as the simple one, but i

Re: Shell scripting problem -- help, please!

2005-08-03 Thread Dave Anderson
** Reply to message from Otto Moerbeek <[EMAIL PROTECTED]> on Wed, 3 Aug 2005 14:51:09 +0200 (CEST) >On Wed, 3 Aug 2005, Dave Anderson wrote: > >> Something's screwy here, using the 'set -A' command in /bin/sh on >> 3.7-release. AFAICT the complicated file-match expression should (in >> this case

Re: Shell scripting problem -- help, please!

2005-08-03 Thread Dave Anderson
** Reply to message from Andreas Kahari <[EMAIL PROTECTED]> on Wed, 3 Aug 2005 13:55:59 +0100 >See sh(1), under "Command execution": > >[...] Just to confuse things, if the posix option is turned off (see >the set command below), some special commands are very special in that >no field splitting,

Re: Shell scripting problem -- help, please!

2005-08-03 Thread Andreas Kahari
I'm sorry, but my diagnosis wasn't correct. The "op( )"-type file patterns simply doesn't seems to work properly in functions: #!/bin/sh function test { set -A arr $1 print [EMAIL PROTECTED] print $1 } test "*" test "@(test.sh)" $ ls test.sh $ ./test.sh test.sh test.sh @(test.sh)

Re: Shell scripting problem -- help, please!

2005-08-03 Thread Andreas Kahari
See sh(1), under "Command execution": [...] Just to confuse things, if the posix option is turned off (see the set command below), some special commands are very special in that no field splitting, file globbing, nor tilde expansion is performed on arguments that look like assignments. Andreas

Re: Shell scripting problem -- help, please!

2005-08-03 Thread Otto Moerbeek
On Wed, 3 Aug 2005, Dave Anderson wrote: > Something's screwy here, using the 'set -A' command in /bin/sh on > 3.7-release. AFAICT the complicated file-match expression should (in > this case) produce the same results as the simple one, but it doesn't > seem to match at all when used in this scri

Shell scripting problem -- help, please!

2005-08-03 Thread Dave Anderson
Something's screwy here, using the 'set -A' command in /bin/sh on 3.7-release. AFAICT the complicated file-match expression should (in this case) produce the same results as the simple one, but it doesn't seem to match at all when used in this script -- but does produce the expected result when cu