-
-
Save abathur/05adb07aff65353b152155336c9d46a8 to your computer and use it in GitHub Desktop.
alias ~preprocessor?
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
$ /usr/bin/env -i PATH="$PATH" /run/current-system/sw/bin/bash <<EOF | |
> shopt -s expand_aliases | |
> alias ls="$(type -p ls)" grep="$(type -p grep)" sed="$(type -p sed)" | |
> foo(){ | |
> echo ls grep sed | |
> ls | |
> ls | grep heh | |
> } | |
> declare -pf foo | |
> unalias ls grep sed | |
> declare -pf foo | |
> foo | |
> EOF | |
foo () | |
{ | |
echo ls grep sed; | |
/run/current-system/sw/bin/ls; | |
/run/current-system/sw/bin/ls | /run/current-system/sw/bin/grep heh | |
} | |
foo () | |
{ | |
echo ls grep sed; | |
/run/current-system/sw/bin/ls; | |
/run/current-system/sw/bin/ls | /run/current-system/sw/bin/grep heh | |
} | |
ls grep sed | |
LICENSE README.md |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment