https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=252896
Bug ID: 252896
Summary: usr.bin/cut when used with -w will replace first
delimiter with \t delimter
Product: Base System
Version: 12.1-RELEASE
Hardware: amd64
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: bin
Assignee: [email protected]
Reporter: [email protected]
It seems that cut is replacing Space Char with a Tab Char when you use the
special function -w for delimiters
Fast proof could be a
ls -al | cut -w -f x- (where x the field number)
you will get someting like
filed-x <TAB> field-x+1 <SPC> field-x+2 <SPC> ...
instead of
filed-x <SPC> field-x+1 <SPC> field-x+2 <SPC> ...
You could verify it with hd(1) where you see 09 for <TAB> and <20> for SPC
Expected behaviour would be, that cut is not touching/changing the field
delimiter
--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "[email protected]"