[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
possible bug with $@ and and non-standard IFS
From: |
JR Rothschild |
Subject: |
possible bug with $@ and and non-standard IFS |
Date: |
Mon, 3 Aug 2009 18:48:03 -0400 |
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}:$@"
IFS=$oldIFS
echo $nd
Thanks for taking a look at this.
JR
- possible bug with $@ and and non-standard IFS,
JR Rothschild <=