> 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
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
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}: