-={ vendredi, 22 avril 2016, 19:57:09.143475347 +0000 }=-
Hey Dearly!
I just noticed a bug with tabs that stems from the vim commandline ":read
!grep 'PC8' /usr/lib/gconv/gconv-modules" in a previous reply I sent. A simple
fix for it becomes to add a pipe to tr as such;
:read !grep 'PC8' /usr/lib/gconv/gconv-modules | tr -s '\t' ' '
alias CSPC8CODEPAGE437// IBM437//
alias CSPC850MULTILINGUAL// IBM850//
alias CSPC862LATINHEBREW// IBM862//
where the -s switch replaces each sequence of a repeated character that is
listed in the last specified SET, with a single occurrence of that character.
In this message's case it replaces tabs with a single space although in the
above example there are only single tabs between fields. However there are
examples where there are more than one between fields to ensure they line up.
"grep 'ISO-8859-1\\' /usr/lib/gconv/gconv-modules" comes to mind. Try it and
you'll see.
I'll check later on the BBS I noticed it on to make sure this indeed is a fix.
I knew better than this but forgot about it since I never put tabs in Fidonet
messages as a rule.
Life is good,
Maurice
... Don't cry for me I have vi.
--- GNU bash, version 4.4.0(1)-rc1 (x86_64-atom-linux-gnu)
* Origin: Little Mikey's Brain - Ladysmith BC, Canada (1:153/7001.0)
|