bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug #65651] argument reference inconsistency


From: alex xmb sw ratchev
Subject: Re: [bug #65651] argument reference inconsistency
Date: Sun, 28 Apr 2024 11:13:10 +0200

On Sun, Apr 28, 2024, 08:52 anonymous <INVALID.NOREPLY@gnu.org> wrote:

> 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
>

did u mean ${!a}
or for a ; or for a in "$@"

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/
>
>
>


reply via email to

[Prev in Thread] Current Thread [Next in Thread]