Last active
August 29, 2015 14:06
-
-
Save kurahaupo/26e2a52fdf7c2d220427 to your computer and use it in GitHub Desktop.
bash aliases inside functions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ alias randomly='if ((RANDOM%2)) ; then' | |
$ dorand() { randomly print Hi ; fi ; } | |
$ type dorand | |
dorand is a function | |
dorand () | |
{ | |
if ((RANDOM%2)); then | |
print Hi; | |
fi | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment