Akim Demaille <[EMAIL PROTECTED]> wrote: | >>>>> "Jim" == Jim Meyering <[EMAIL PROTECTED]> writes: | | Jim> Hi Akim, | | Jim> So consider a name containing some other shell meta-character. | | I don't understand what difference you make between the two approaches | wrt meta-characters. | | Wer are talking about | | ( exec "$@" ) | | vs | | prog=$1 | shift | "$prog" "$@" His suggested change didn't have double quotes around $prog. Besides, if you do use double quotes around it, as you've written, above, then Ultrix4.4's /bin/sh fails in exactly the same way as if you'd used "$@". | and I see no difference wrt meta-characters. | | | /tmp % cat cat\ file | | #! /bin/cat | | /tmp % cat foo.sh | | #! /bin/sh | | | | # Jim. | | ( exec "$@" ) | | | | # Alexandre | | prog=$1 | | shift | | "$prog" ${1+"$@"} | | /tmp % PATH=/tmp ./foo.sh 'cat file' 'cat file' | | #! /bin/cat | | #! /bin/cat | | #! /bin/cat | | #! /bin/cat
- `missing' needs patch for Ultrix4.4 Jim Meyering
- Re: `missing' needs patch for Ultrix4.4 Alexandre Oliva
- Re: `missing' needs patch for Ultrix4.4 Jim Meyering
- Re: `missing' needs patch for Ultrix4.4 Akim Demaille
- Re: `missing' needs patch for Ultrix4.4 Jim Meyering
- Re: `missing' needs patch for Ultrix4.4 Akim Demaille
- Re: `missing' needs patch for Ultrix4.4 Jim Meyering
- Re: `missing' needs patch for Ultrix4.4 Akim Demaille
- Re: `missing' needs patch for Ultrix4.4 Jim Meyering
- Re: `missing' needs patch for Ultrix4.4 Alexandre Oliva
- Re: `missing' needs patch for Ultrix4.4 Akim Demaille
- Re: `missing' needs patch for Ultrix4.4 Jim Meyering
- Re: `missing' needs patch for Ultrix4.4 Akim Demaille
- Re: `missing' needs patch for Ultrix4.4 Jim Meyering
- Re: `missing' needs patch for Ultrix4.4 Tom Tromey
- Re: `missing' needs patch for Ultrix4.4 Jim Meyering
- Re: `missing' needs patch for Ultrix4.4 Tom Tromey
- Re: `missing' needs patch for Ultrix4.4 Jim Meyering
- Re: `missing' needs patch for Ultrix4.4 Tom Tromey