From: Frank Terbeck Date: Fri, 26 Jun 2015 10:00:14 +0000 (+0200) Subject: Marking an array for export serves no purpose X-Git-Tag: v0.12.2~4 X-Git-Url: http://git.grml.org/?p=grml-etc-core.git;a=commitdiff_plain;h=cdbb53b4514fd48e8f8edf759b9cc8341056bf27 Marking an array for export serves no purpose These are remnants of me not completely understanding the way that scope works in shells. I'll remove these whenever I see them. --- diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index d4978e4..5b86f31 100644 --- a/etc/zsh/zshrc +++ b/etc/zsh/zshrc @@ -981,7 +981,7 @@ function Accept-Line-HandleContext() { function accept-line() { setopt localoptions noksharrays - local -ax cmdline + local -a cmdline local -x alcontext local buf com fname format msg default_action @@ -1629,7 +1629,7 @@ fi chpwd() { if (( $DIRSTACKSIZE <= 0 )) || [[ -z $DIRSTACKFILE ]]; then return; fi - local -ax my_stack + local -a my_stack my_stack=( ${PWD} ${dirstack} ) if is42 ; then builtin print -l ${(u)my_stack} >! ${DIRSTACKFILE}