Skip to content

Commit

Permalink
ebd/ebuild.lib: use compgen instead grepping declare output
Browse files Browse the repository at this point in the history
  • Loading branch information
radhermit committed May 2, 2016
1 parent c996955 commit 4cd7ecf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ebd/ebuild.lib
Expand Up @@ -21,7 +21,7 @@
# readonly. This limits users, but also helps to ensure that reloaded envs from older portages don't
# overwrite an internal ebd.sh function that has since changed.

ORIG_VARS=$(declare | grep -E '^[^[:space:]{}()]+=' | cut -s -d '=' -f 1)
ORIG_VARS=$(compgen -v)

DONT_EXPORT_VARS="ORIG_VARS GROUPS FUNCNAME CCACHE.* DISTCC.* SYNC
(TMP)?DIR FEATURES CONFIG_PROTECT.* WORKDIR RSYNC_.* GENTOO_MIRRORS
Expand Down

0 comments on commit 4cd7ecf

Please sign in to comment.