[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: `missing' needs patch for Ultrix4.4
From: |
Jim Meyering |
Subject: |
Re: `missing' needs patch for Ultrix4.4 |
Date: |
19 Mar 2001 12:00:18 +0100 |
User-agent: |
Gnus/5.090001 (Oort Gnus v0.01) Emacs/21.0.101 |
Akim Demaille <address@hidden> wrote:
| >>>>> "Jim" == Jim Meyering <address@hidden> 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, 2001/03/17
- Re: `missing' needs patch for Ultrix4.4, Alexandre Oliva, 2001/03/18
- Re: `missing' needs patch for Ultrix4.4, Jim Meyering, 2001/03/19
- Re: `missing' needs patch for Ultrix4.4, Akim Demaille, 2001/03/19
- Re: `missing' needs patch for Ultrix4.4, Jim Meyering, 2001/03/19
- Re: `missing' needs patch for Ultrix4.4, Akim Demaille, 2001/03/19
- Re: `missing' needs patch for Ultrix4.4, Jim Meyering, 2001/03/19
- Re: `missing' needs patch for Ultrix4.4, Akim Demaille, 2001/03/19
- Re: `missing' needs patch for Ultrix4.4,
Jim Meyering <=
- Re: `missing' needs patch for Ultrix4.4, Akim Demaille, 2001/03/19
- Re: `missing' needs patch for Ultrix4.4, Jim Meyering, 2001/03/19
- Re: `missing' needs patch for Ultrix4.4, Akim Demaille, 2001/03/19
- Re: `missing' needs patch for Ultrix4.4, Jim Meyering, 2001/03/19
- Re: `missing' needs patch for Ultrix4.4, Alexandre Oliva, 2001/03/20