summaryrefslogtreecommitdiffstats
path: root/tools/mxe-activate
diff options
context:
space:
mode:
authorTony Theodore <tonyt@logyst.com>2014-06-14 10:37:36 (GMT)
committerTony Theodore <tonyt@logyst.com>2014-06-14 10:37:36 (GMT)
commit3298820124c7d1c54159ed4f5d48b7d4c7994056 (patch)
treea2c265adf584d8f3f9182d7b551c2cc7004f5c3e /tools/mxe-activate
parente25d4018ecbe1efa8126b302dde0eaa83dd43583 (diff)
downloadmxe-3298820124c7d1c54159ed4f5d48b7d4c7994056.zip
mxe-3298820124c7d1c54159ed4f5d48b7d4c7994056.tar.gz
mxe-3298820124c7d1c54159ed4f5d48b7d4c7994056.tar.bz2
mxe-activate: use compgen -e for variable list instead of env
Diffstat (limited to 'tools/mxe-activate')
-rw-r--r--tools/mxe-activate4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/mxe-activate b/tools/mxe-activate
index 461b547..bc38779 100644
--- a/tools/mxe-activate
+++ b/tools/mxe-activate
@@ -10,10 +10,10 @@ MXE_TARGET_LIST=`eval "echo {$MXE_TRIPLETS}.{$MXE_LIB_TYPES}"`
alias mxe='$MAKE -C $MXE_DIR --no-print-directory'
-unset `env | \
+unset `compgen -e | \
grep -vi '^EDITOR=\|^HOME=\|^LANG=\|MXE\|^PATH=' | \
grep -vi 'PKG_CONFIG\|PROXY\|^PS1=\|^TERM=' | \
- cut -d '=' -f1 | tr '\n' ' '`
+ tr '\n' ' '`
_mxe()
{