Re: Question on $@ vs $@$@
Greg Wooledge <[email protected]> Wed, 14 Aug 2024 11:28:48 -0400
| Newsgroups | org.kernel.vger.dash |
|---|---|
| Message-ID | <[email protected]> |
On Wed, Aug 14, 2024 at 17:58:15 +0300, Oğuz wrote: > On Wed, Aug 14, 2024 at 5:23 PM Robert Elz <[email protected]> wrote: > > However, as ksh93 makes "" from this > > expansion, and so probably ksh88 might have done as well > > No, both Sun and SCO variants expand "$@$@" to zero fields when $# is 0. HP-UX 10.20 as well: # set -- # printf '<%s> ' START "$@" END; echo <START> <END> # printf '<%s> ' START "$@$@" END; echo <START> <END> # uname -a HP-UX vandev B.10.20 A 9000/778 2000153729 two-user license