help-bash
[Top][All Lists]
Advanced

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

Re: [Help-bash] Passing elements to function


From: Matthew Cengia
Subject: Re: [Help-bash] Passing elements to function
Date: Mon, 16 Oct 2017 08:17:22 +1100
User-agent: K-9 Mail for Android

Also "do",  not "doe".

On 16 October 2017 12:35:17 am AEDT, "Eduardo A. Bustamante López" 
<address@hidden> wrote:
>On Sun, Oct 15, 2017 at 08:30:11AM +0300, Pierre Gaston wrote:
>[...]
>> Before that though, a simpler solution is to pass the elements
>something
>> like:
>> 
>> array2file () {
>> local file elem
>> file =$1
>> shift
>> for elem in "$@";doe
>>   echo "$elem"
>> done >> "$file"
>> }
>
>                                              v
>Just a small correction, the space here: `file =$1' should be removed.

-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.


reply via email to

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