dumbest bug

This commit is contained in:
Connor Olding 2013-05-20 20:29:40 -07:00
parent 2edb454851
commit c8fc1d462e

3
lsf.sh
View File

@ -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