Skip to content

Instantly share code, notes, and snippets.

@ennorehling
Created June 2, 2014 21:50
Show Gist options
  • Save ennorehling/cd03da8705999a91e8bb to your computer and use it in GitHub Desktop.
Save ennorehling/cd03da8705999a91e8bb to your computer and use it in GitHub Desktop.
#!/bin/bash
str() {
foo() {
echo "fourty-two"
}
}
int() {
foo() {
echo "42"
}
}
str
foo
int
foo
## expected output:
# $ . trick.sh
# fourty-two
# 42
# $
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment