fex icon indicating copy to clipboard operation
fex copied to clipboard

fex cutting off non–newline-terminated lines

Open catsbian opened this issue 5 years ago • 1 comments

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

catsbian avatar Jul 10 '20 03:07 catsbian

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 .

jordansissel avatar Jul 10 '20 04:07 jordansissel