aboutsummaryrefslogtreecommitdiff
path: root/functions/utilities.zsh
diff options
context:
space:
mode:
authorromkatv <roman.perepelitsa@gmail.com>2019-04-22 18:06:41 +0300
committerromkatv <roman.perepelitsa@gmail.com>2019-04-22 18:06:41 +0300
commit0e0132e8fad785c87160f39b5d450a28295ee369 (patch)
tree3fd0aa21f81ad8f1668d210a769580e15f9b8482 /functions/utilities.zsh
parent1d7c63f80fcc1ea1b79342c972fe77e3e2ec80e4 (diff)
protect set_default from user-defined options
Diffstat (limited to 'functions/utilities.zsh')
-rwxr-xr-xfunctions/utilities.zsh1
1 files changed, 1 insertions, 0 deletions
diff --git a/functions/utilities.zsh b/functions/utilities.zsh
index c30fa096..7a322e57 100755
--- a/functions/utilities.zsh
+++ b/functions/utilities.zsh
@@ -10,6 +10,7 @@
#
# Options are the same as in `typeset`.
function set_default() {
+ emulate -L zsh
local -a flags=(-g)
while true; do
case $1 in