Created
August 16, 2017 13:07
-
-
Save Bost/186e423932a98a1cab521a69dbc597ea to your computer and use it in GitHub Desktop.
fish: for-loop
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function for-loop | |
set list \ | |
"foo" \ | |
"bar" \ | |
"zee" | |
for item in $list | |
echo "item: $item" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment