From: Thilo Six Date: Sun, 5 Feb 2017 10:33:15 +0000 (+0100) Subject: fix usage of 'typeset -U' X-Git-Tag: v0.14.0~11 X-Git-Url: http://git.grml.org/?a=commitdiff_plain;h=fbdbd827671eb277487c32c25f32da11dbf408bb;hp=fbdbd827671eb277487c32c25f32da11dbf408bb;p=grml-etc-core.git fix usage of 'typeset -U' From man zsh: for variables with shared values it is therefore recommended to set the flag for all interfaces, e.g. `typeset -U PATH path'. Otherwise one of them is not unique: % echo ${parameters[path]} array-unique-special % echo ${parameters[PATH]} scalar-export-special After: % echo ${parameters[path]} array-unique-special % echo ${parameters[PATH]} scalar-export-unique-special Additionally drop a superflous for loop. ---