Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 06 Apr 2008 11:17:18 -0700
From:      Julian Elischer <julian@elischer.org>
To:        dino <dino@unitix.org>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: bug in /bin/sh?!?
Message-ID:  <47F913AE.3040604@elischer.org>
In-Reply-To: <47F8C1B3.4030902@unitix.org>
References:  <47F8C1B3.4030902@unitix.org>

next in thread | previous in thread | raw e-mail | index | archive | help
dino wrote:
> Hello,
> 
> on my FreeBSD 7.0-STABLE the line:
> 
>> sh -c 'set -- ${HOME+A B C}; echo "1:$1"; echo "2:$2:"; echo "3:$3:"'
> 
> prints
> 
> 1:A B C:
> 2::
> 3::
> 
> I would rather expect:
> 
> 1:A:
> 2:B:
> 3:C:
> 
> Is it correct that field splitting isn't performed on default/alternate
> expanded values?
> 

"A B C" is a single value tha thappens to contain spaces.
so, yes there is no splitting at that point.


> regards,
> 
> Corrado Ficicchia
> _______________________________________________
> freebsd-hackers@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
> To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?47F913AE.3040604>