How do you write the equivalent script in fish
#!/bin/bash for i in `ls` do echo $i done
thanks
fish uses (parens )rather than backticks to capture shell output:
(
)
for i in (ls) echo $i end