All of lore.kernel.org
 help / color / mirror / Atom feed
* Question on $@ vs $@$@
@ 2024-08-14  0:45 Steffen Nurpmeso
  2024-08-14  2:17 ` Greg Wooledge
                   ` (2 more replies)
  0 siblings, 3 replies; 14+ messages in thread
From: Steffen Nurpmeso @ 2024-08-14  0:45 UTC (permalink / raw)
  To: dash, busybox, bug-bash; +Cc: Steffen Nurpmeso

Hello.

I include bug-bash even though i think bash is correct, but there
lots of people of expertise are listening, so, thus.
Sorry for cross-posting, nonetheless.
Given this snippet (twox() without argument it is)

  one() { echo "$# 1<$1>"; }
  two() { one "$@"; }
  twox() { one "$@$@"; }
  two
  two x
  twox
  twox x

i get

  $ dash shbug.sh
  0 1<>
  1 1<x>
  1 1<>
  1 1<xx>

  #?0|kent:tmp$ busybox.static sh shbug.sh
  0 1<>
  1 1<x>
  1 1<>
  1 1<xx>

  #?0|kent:tmp$ bash shbug.sh
  0 1<>
  1 1<x>
  0 1<>
  1 1<xx>

(This is busybox with my arithmetic patch, built on April 20th.)
Unfortunately my MUA is also bogus :(

--steffen
|
|Der Kragenbaer,                The moon bear,
|der holt sich munter           he cheerfully and one by one
|einen nach dem anderen runter  wa.ks himself off
|(By Robert Gernhardt)

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2024-08-27  0:28 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-14  0:45 Question on $@ vs $@$@ Steffen Nurpmeso
2024-08-14  2:17 ` Greg Wooledge
2024-08-14  9:04   ` Marc Chantreux
2024-08-14 13:23     ` Greg Wooledge
2024-08-14 14:51       ` Robert Elz
2024-08-15  7:14       ` Marc Chantreux
2024-08-14 14:20     ` Robert Elz
2024-08-14 14:58       ` Oğuz
2024-08-14 15:28         ` Greg Wooledge
2024-08-14 15:57 ` Chet Ramey
2024-08-14 20:05   ` Steffen Nurpmeso
2024-08-15 18:48     ` Steffen Nurpmeso
2024-08-15 21:33       ` Steffen Nurpmeso
     [not found] ` <CAALKErGQcz=LS=xC544fXf9OywVmU32s1R-wSKzVTiavQTHZ6Q@mail.gmail.com>
2024-08-27  0:28   ` Steffen Nurpmeso

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.