From c8fc1d462e6b879d32e27c6aaee2ca9b61d5dcb6 Mon Sep 17 00:00:00 2001 From: Connor Olding Date: Mon, 20 May 2013 20:29:40 -0700 Subject: [PATCH] dumbest bug --- lsf.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lsf.sh b/lsf.sh index 43e7e5a..8cfa27c 100755 --- a/lsf.sh +++ b/lsf.sh @@ -12,6 +12,7 @@ # TODO: set better defaults for quick glances at filesize # TODO: include sorting somehow +# TODO: handle symlinks nicely _lsf_begin(){ local begin=' @@ -138,7 +139,7 @@ function fixlen(str, len) { if (!OSPA) { if (NR!=1) fn=substr(fn,firstlen) - else firstlen=length(fn)+((type==04)?2:1) + else firstlen=length(fn)+2-(fn ~ /\/$/) } print fn