zshrc: use "local" file variable in sll()
authorMichael Prokop <mika@grml.org>
Mon, 12 May 2014 11:05:18 +0000 (13:05 +0200)
committerMichael Prokop <mika@grml.org>
Mon, 12 May 2014 11:22:03 +0000 (13:22 +0200)
etc/zsh/zshrc

index f95045a..fe58fe9 100644 (file)
@@ -2532,6 +2532,7 @@ compdef _functions freload
 #f1# List symlinks in detail (more detailed version of 'readlink -f' and 'whence -s')
 sll() {
     [[ -z "$1" ]] && printf 'Usage: %s <file(s)>\n' "$0" && return 1
+    local file
     for file in "$@" ; do
         while [[ -h "$file" ]] ; do
             ls -l $file