github.com/madlambda/nash@v0.2.2-0.20230113003044-f2284521680b/internal/sh/builtin/testdata/split.sh (about) 1 #!/usr/bin/env nash 2 3 var word = $ARGS[1] 4 var sep = $ARGS[2] 5 var output <= split($word, $sep) 6 for o in $output { 7 echo $o 8 }