« Minimal Reproducible »

Home Tags About GitHub

array-and-for

Published at 2024-01-16
Last update over 365 days ago Licensed under CC BY-NC-SA 4.0 softwares-and-toolsfish

https://stackoverflow.com/questions/50027770/fish-shell-how-to-append-an-element-to-an-array

set -l array "tiny tim" bob
set -l children joe elias matt

echo $children
for i in (seq 2)
    set children (string join " " $children $array[$i])
end
echo $children

« Minimal Reproducible »

Powered by Astro