[Bug 252896] usr.bin/cut when used with -w will replace first delimiter with \t delimter
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Thu Jan 21 22:18:55 UTC 2021
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: bugs at FreeBSD.org
Reporter: antispam007 at mac.com
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.
More information about the freebsd-bugs
mailing list