bug-bash
[Top][All Lists]
Advanced

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

Re: Question that baffles AI (all of them)


From: Lawrence Velázquez
Subject: Re: Question that baffles AI (all of them)
Date: Sat, 15 Jun 2024 17:37:19 -0400
User-agent: Cyrus-JMAP/3.11.0-alpha0-515-g87b2bad5a-fm-20240604.001-g87b2bad5

On Sat, Jun 15, 2024, at 5:30 PM, Saint Michael wrote:
> in this code:
> data="'1,2,3,4','5,6,7,8'"
>
> # Define the processing function
> process() {
> echo "There are $# arguments."
>     echo "They are: $@"
>     local job="$1"
>     shift
>     local a="$1"
>     shift
>     local b="$1"
>     shift
>     local remaining="$*"
>     echo "Arg1: '$a', Arg2: '$b'"
> }
> process "$data"
>
> how can I get my (a) and (b) arguments right?
> The length of both strings is unpredictable.
> a="1,2,3,4" and b="5,6,7,8""

This question belongs on help-bash, not bug-bash.

-- 
vq



reply via email to

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