Created
April 26, 2019 20:43
-
-
Save grahamc/4888ef93e9f06631607db4faa6519342 to your computer and use it in GitHub Desktop.
This file contains 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
[grahamc@Petunia:~]$ type bash | |
bash is /run/current-system/sw/bin/bash | |
[grahamc@Petunia:~]$ which bash | |
/run/current-system/sw/bin/bash | |
[grahamc@Petunia:~]$ bash | |
lol not this time | |
[grahamc@Petunia:~]$ /run/current-system/sw/bin/bash | |
haha not this one either | |
The secret is: | |
[grahamc@Petunia:~]$ which() { echo "/run/current-system/sw/bin/bash" } | |
[grahamc@Petunia:~]$ type() { echo "bash is /run/current-system/sw/bin/bash" } | |
[grahamc@Petunia:~]$ bash() { echo "lol not this time" } | |
[grahamc@Petunia:~]$ /run/current-system/sw/bin/bash() { echo "haha not this one either" } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment