OILS / spec / testdata / source-argv.sh View on Github | oilshell.org

7 lines, 3 significant
1#!/usr/bin/env bash
2
3echo source-argv: $@
4# 'shift' will only apply to the args of 'f()' when no new args are provided.
5# This can mutate the "caller's" arguments array!
6shift
7local foo=foo_val