Re: cut loadable outputs extra newlines

2022-08-15 Thread Chet Ramey
On 8/13/22 10:06 PM, Martin D Kealey wrote: I note that https://pubs.opengroup.org/onlinepubs/009696699/utilities/cut.html says: /> The elements in list can be repeated, can overlap, and can be specified in any order, but the

Re: cut loadable outputs extra newlines

2022-08-13 Thread Lawrence Velázquez
On Sat, Aug 13, 2022, at 10:06 PM, Martin D Kealey wrote: > I note that > https://pubs.opengroup.org/onlinepubs/009696699/utilities/cut.html says: > *> The elements in list can be repeated, can overlap, and can be specified > in any order, but the bytes, characters, or fields selected shall be > wr

Re: cut loadable outputs extra newlines

2022-08-13 Thread Martin D Kealey
I note that https://pubs.opengroup.org/onlinepubs/009696699/utilities/cut.html says: *> The elements in list can be repeated, can overlap, and can be specified in any order, but the bytes, characters, or fields selected shall be written in the order of the input data.* The intention behind this is

Re: cut loadable outputs extra newlines

2022-08-11 Thread Chet Ramey
On 8/10/22 4:50 PM, Geir Hauge wrote: Bash Version: 5.2 Patch Level: 0 Release Status: rc3 Description: examples/loadables/cut.c uses zgetline, which includes the newline delimiter in the line it reads, but the rest of the code expects the line to not contain the newline. Thank

cut loadable outputs extra newlines

2022-08-10 Thread Geir Hauge
Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: darwin20.6.0 Compiler: gcc Compilation CFLAGS: -g -O2 uname output: Darwin macspear 20.6.0 Darwin Kernel Version 20.6.0: Tue Apr 19 2$ Machine Type: x86_64-apple-darwin20.6.0 Bash Version: 5.2 Patch Level: 0 Re