[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #65651] argument reference inconsistency
From: |
anonymous |
Subject: |
[bug #65651] argument reference inconsistency |
Date: |
Sun, 28 Apr 2024 02:51:45 -0400 (EDT) |
URL:
<https://savannah.gnu.org/bugs/?65651>
Summary: argument reference inconsistency
Group: The GNU Bourne-Again SHell
Submitter: None
Submitted: Sun 28 Apr 2024 06:51:44 AM UTC
Category: None
Severity: 3 - Normal
Item Group: None
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Follow-up Comments:
-------------------------------------------------------
Date: Sun 28 Apr 2024 06:51:44 AM UTC By: Anonymous
Try the following script w/ various sets of arguments and tell me if you see
something weird!
#!/bin/bash
echo "script has $# arguments"
echo "cmdline \$* = $*"
echo "first 3 args: [$1] [$2] [$3]"
for a in $*
do
echo "arg: $a"
done
Argument set:
A) alpha beta gamma
B) "alpha" "beta" "gamma"
C) "alp ha" "be ta" "gam ma"
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?65651>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [bug #65651] argument reference inconsistency,
anonymous <=