X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=etc%2Fzsh%2Fzshrc;h=a4adfdd7c8523b62eeb70b2509e0ce633c4a7aa7;hb=b72d908b1b136820a113c2a01da79393cf331678;hp=ee18d7ceed946ebfca3aea3582ff24bf9f829382;hpb=91d0835c1d20d697870290fa97f45b5794d17cf7;p=grml-etc-core.git diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index ee18d7c..a4adfdd 100644 --- a/etc/zsh/zshrc +++ b/etc/zsh/zshrc @@ -976,8 +976,8 @@ If you want to use xinit anyway please call \"/usr/bin/xinit\"." # list symlinks in detail (more detailed version of 'readlink -f' and 'whence -s') sll() { - [ -z "$1" ] && printf 'usage: %s \n' "$0" && exit 1 - for i in $* ; do + [ -z "$1" ] && printf 'Usage: %s \n' "$0" && return 1 + for i in "$@" ; do file=$i while [ -h "$file" ] ; do ls -l $file