]> ruderich.org/simon Gitweb - config/dotfiles.git/commitdiff
lessfilter: Minor cleanup.
authorSimon Ruderich <simon@ruderich.org>
Mon, 18 Nov 2013 12:13:49 +0000 (13:13 +0100)
committerSimon Ruderich <simon@ruderich.org>
Tue, 19 Nov 2013 01:18:19 +0000 (02:18 +0100)
lessfilter

index 92d62c42009d762cbdee483eac5ecfd4fd03046f..404cbe05a0612c2ffc3c46671d26f5273ce21439 100755 (executable)
 case "$1" in
     # Color diff files.
     *.diff | *.patch)
-        < "$1" colordiff
+        colordiff <"$1"
         ;;
     *)
         # Display directory contents.
         if test -d "$1"; then
             printf '=> Contents of %s:\n' "$1"
-            ls "$1"
+            ls -- "$1"
             exit 0
         fi