Subject: Re: bin/33472: /bin/sh does not expand "$@" correctly
To: None <gnats-bugs@netbsd.org, gnats-admin@netbsd.org,>
From: Christos Zoulas <christos@zoulas.com>
List: netbsd-bugs
Date: 05/12/2006 15:51:03
On May 12,  7:50pm, david@l8s.co.uk (David Laight) wrote:
-- Subject: Re: bin/33472: /bin/sh does not expand "$@" correctly

| The following reply was made to PR bin/33472; it has been noted by GNATS.
| 
| From: David Laight <david@l8s.co.uk>
| To: gnats-bugs@netbsd.org
| Cc: 
| Subject: Re: bin/33472: /bin/sh does not expand "$@" correctly
| Date: Fri, 12 May 2006 20:57:55 +0100
| 
|  On Fri, May 12, 2006 at 07:25:03PM +0000, rillig@NetBSD.org wrote:
|  > >Number:         33472
|  > >Category:       bin
|  > >Synopsis:       /bin/sh does not expand "$@" correctly
|  > 
|  > $ set -- "" ""
|  > $ echo $#
|  > 2
|  > $ echo "$@" | sed s,\$,EOL,
|  > EOL
|  > $
|  
|  $ set -- a ""; echo "$@" | hexdump -C
|  also fails to add a space following the 'a'.

Something is trimming traling spaces.

christos