Skip to content

Instantly share code, notes, and snippets.

@richiethomas
Created September 18, 2023 15:19
Show Gist options
  • Select an option

  • Save richiethomas/ac0747ce1ff313b9eb0543b0fdac12b8 to your computer and use it in GitHub Desktop.

Select an option

Save richiethomas/ac0747ce1ff313b9eb0543b0fdac12b8 to your computer and use it in GitHub Desktop.
#!/usr/bin/env fish
function foo
echo "old argv: $argv"
set -e argv[1]
echo "new argv: $argv"
exit
end
foo $argv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment