fex
fex copied to clipboard
fex cutting off non–newline-terminated lines
Seems like fex always chomps off the last byte, expecting it to be a newline, regardless of whether it’s actually a newline? For example:
% echo a bc | fex -1
a bc
but
% echo -n a bc | fex -1
b
Oh good find. I believe this is a bug!
On Thu, Jul 9, 2020 at 8:43 PM catsbian [email protected] wrote:
Seems like fex always chomps off the last byte, expecting it to be a newline, regardless of whether it’s actually a newline? For example:
% echo a bc | fex -1
a bc
but
% echo -n a bc | fex -1
b
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/jordansissel/fex/issues/11, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABAF2UVUNEAHGYOCRSKFMDR22E4ZANCNFSM4OWGKOFA .