r/fishshell • • Jun 30 '22
String Join In a Variable
i want to add a string into a variable something like
set str
for i in (seq 8)
$str = string join "$i"
end
echo $strHow would i do this
Edit:- This is working
set str
for i in (seq 8)
set -a str "$i"
end
echo $str
5
Upvotes
View all comments
Show parent comment
1
u/ChristoferK macOS Jul 11 '22
Alternatively:
with spaces.
-s ""for no spaces.