]> ruderich.org/simon Gitweb - config/dotfiles.git/blobdiff - lessfilter
shell/aliases: use `command`
[config/dotfiles.git] / lessfilter
index fc9eac4e13a760bfdc94238c6130fea446b48148..404cbe05a0612c2ffc3c46671d26f5273ce21439 100755 (executable)
 case "$1" in
     # Color diff files.
     *.diff | *.patch)
-        < "$1" colordiff
+        colordiff <"$1"
         ;;
     *)
         # Display directory contents.
         if test -d "$1"; then
-            echo "=> Contents of $1:"
-            ls "$1"
+            printf '=> Contents of %s:\n' "$1"
+            ls -- "$1"
             exit 0
         fi