Re: possible bug with $@ and and non-standard IFS

2009-08-05 Thread JR Rothschild
> If you use nd="${dh}$*" before resetting IFS, you'll get the output you > in bash-3.0 through bash-4.0. But I don't in Bourne shell, I get smith0.0. So neither construct works in a portable manner. :( JR

Re: possible bug with $@ and and non-standard IFS

2009-08-04 Thread JR Rothschild
d anytime soon. :) Thanks for your help. We have a workaround. JR On Tue, Aug 4, 2009 at 10:01 AM, Chet Ramey wrote: > JR Rothschild wrote: >> Hi, >> In either version 3.1.17 (SUSE 10) or 3.2.25 (RHEL 5.3), with $DISPLAY >> set to :0.0 >> the following

possible bug with $@ and and non-standard IFS

2009-08-03 Thread JR Rothschild
Hi, In either version 3.1.17 (SUSE 10) or 3.2.25 (RHEL 5.3), with $DISPLAY set to :0.0 the following script gives unexpected results.(It works with version 3.0.15 - RHEL4.6) The echo should print out smith:0.0 instead of smith 0.0 #!!/bin/bash dh=smith oldIFS=$IFS IFS=: set $DISPLAY nd="${dh}: