Re: Pair-wise file operation (copy, link)

2024-08-25 Thread William Bader
>Since you were reporting 2 min, was wondering what your platform is and >whether there might be something else involved eating the 2 min realtime? Shouldn't any modern operating system do enough caching of inodes and files (like the file with the "cp" executable) that the only difference should

[patch] add a compact header format to pr

2014-12-08 Thread William Bader
The attached patch adds a --compact option to pr that creates a 2 line header and 0 line footer instead of the default 5 line header and 5 line footer. This allows the normal header line with the file name, date and page number without wasting 8 lines per page. The alternatives would be 1) re-i

RE: [patch] add a compact header format to pr

2014-12-09 Thread William Bader
> Date: Tue, 9 Dec 2014 20:39:58 + > From: p...@draigbrady.com > To: williamba...@hotmail.com > Subject: Re: [patch] add a compact header format to pr > > On 09/12/14 00:25, William Bader wrote: >> The attached patch adds a --compact option to pr that creates a 2 li

RE: seq feature: print letters

2015-01-28 Thread William Bader
> Date: Wed, 28 Jan 2015 12:32:48 -0500 > From: assafgor...@gmail.com > To: p...@draigbrady.com > Subject: Re: seq feature: print letters > CC: coreutils@gnu.org > > On 01/26/2015 03:39 PM, Pádraig Brady wrote: > >>> On 25/01/15 05:10, Assaf Gordon wrote: > > I'm thinking that perhaps it wou

RE: Document for + seems to be missing in ls' document

2015-03-12 Thread William Bader
texi2roff can convert texinfo files to groff which can then produce various text and printable formats. It doesn't make a man page, but it does make something that you can open in a text editor. I updated it once about 20 years ago, and someone else updated it again about 10 years ago and bumped

RE: [PATCH] Speedup wc -l

2015-03-15 Thread William Bader
>This is with gcc 4.9.2-7 and glibc 2.19-17 on Debian amd64. The difference is still there for me when compiling with your CFLAGS. Have they improved memchr in glibc 2.20? Doesn't gcc inline memchr() if the signature matches and you have not specified -fno-builtin? Is the slow memchr() a gcc

RE: mv bug report

2015-05-23 Thread William Bader
I think that mv -i warns only when it would overwrite a file. Your test renamed a file but did not overwrite an existing file. From: 1047481...@qq.com To: coreutils@gnu.org Subject: mv bug report Date: Sat, 23 May 2015 14:52:42 +0800 Greetings ! My name is Serg Kolo, I am an Ubuntu 15.04 user.

RE: Leap Second 2015-06-30 23:59:60 UTC

2015-06-30 Thread William Bader
> Date: Tue, 30 Jun 2015 14:40:17 -0600 > From: b...@proulx.com > To: coreutils@gnu.org > Subject: Leap Second 2015-06-30 23:59:60 UTC > > Hmm... I don't know. Should this work? I admit to being confused here. > > $ date -u -d '2015-06-30 23:59:60 UTC' > date: invalid date ‘2015-06-30 23:5

Re: ls output changes considered unacceptable

2016-02-18 Thread William Bader
I agree with what others have said that the ls output change should be reverted. I have not commented before because I am not a maintainer of any open source packages, so I suspected that my opinion would carry little weight. I agree with everything that Michael Stone said -- the change is not in

Re: coreutils Digest, Vol 108, Issue 9

2019-02-16 Thread William Bader
Isn't it normal to left-align text and right-align numbers? Could the month alignment be guessed from the locale date_fmt? Message: 1 Date: Sat, 16 Feb 2019 02:03:41 +0800 From: Lion Yang To: coreutils@gnu.org Subject: [PATCH] ls: use right-aligned abbreviated month names Message-ID: <16a7f94fc4d

Re: line buffering in pipes

2019-05-02 Thread William Bader
gnu parallel has options to keep the output from commands from being scrambled. For example, -k keeps the output in the same order as the input job list. http://www.gnu.org/software/parallel/ https://www.gnu.org/software/parallel/man.html#EXAMPLE:-Keep-order-of-output-same-as-order-of-input Reg

Re: Which Coreutils Programs Use Non-Numeric Input/Data?

2020-05-25 Thread William Bader
I think that KLEE uses llvm to compile C programs to bytecode and then has a bytecode interpreter that checks the coverage of test cases and a solver that tries to generate test cases that completely cover the code. The person who asked the question is probably looking for programs like 'tr' or

Re: split: Allow splitting by line count (instead of byte size)

2021-01-11 Thread William Bader
I think that split has to be able to read from pipes, so if it reads to the end to find the number of lines, it can't back up to do the split. If you don't care about the order of the lines, you could use "split --number=r/2" From: coreutils on behalf of John

Re: split: Allow splitting by line count (instead of byte size)

2021-01-12 Thread William Bader
> lines=$(($(wc -l < "file") / 2)) > split -l $lines file Doesn't this need to round up to avoid leaving a third file with one line if the original file has an odd number of lines? split -l $((($(wc -l < file) + 1) / 2)) file

Re: Print modification time in compact form

2021-03-15 Thread William Bader
> $ stat -c '%y' file.txt > 2017-07-31 17:50:54.0 +0100 > Is there a way to directly print it as 20170731-1750? Thanks. date --date="@$(stat -c '%Y' file.txt)" '+%+4Y%m%d-%H%M' From: coreutils on behalf of Peng Yu Sent: Monday, March 15, 2021 10:16 PM T

Re: Support for CSV file format on sort

2021-03-24 Thread William Bader
> I’d prefer to have reliable tools to convert csv to tsv and tsv to csv If someone writes a new tool, could it be general enough to support any unicode-separated format, for example psv: https://paulfitz.github.io/2017/01/24/the-year-of-poop-on-the-desktop.html ? __

Re: [PATCH] tee: Add --pipe-check to allow instantly detecting closed outputs

2022-11-29 Thread William Bader
For the case of testing two compile runs, could you use something like the bash command below (replacing 'sleep ...' with 'gcc ...')? (timeout 10 sleep 2 ; echo a) & (timeout 2 sleep 10 ; echo b) & echo c ; wait ; echo d From: coreutils-bounces+williambader=hotma

Re: nstrftime.c fails to build due to memset overflow

2023-03-15 Thread William Bader
> The goal should not be to pacify compilers' false alarms. The goal should be > to have code that works correctly, is easy to understand, is efficient, etc. In my personal code, when gcc complains about an uninitialized variable, even if the code is correct, I usually either add an initializati

Re: rm --do-what-i-mean

2023-05-06 Thread William Bader
chmod already has an X file mode that treats directories specially. Is it worth adding R and W modes that work similarly to X? From: coreutils-bounces+williambader=hotmail@gnu.org on behalf of Pádraig Brady Sent: Saturday, May 6, 2023 12:35 PM To: Philip R

Re: [PATCH] printf: add %#s alias to %b

2023-09-05 Thread William Bader
Has bash ever had a change before that would break valid scripts? Could the printf format change be settable by a variable or by an option like the -e/-E in echo? Is it necessary for bash printf to match C printf? I suppose that it is already decided. Could the bash printf implementation warn

Re: coreutils/man/rm.x - fails to mention POSIX "Refuse to remove path/. and path/.., as well as `.' and `..'

2023-09-24 Thread William Bader
markdown might be a better target than html because it is human readable and many web sites can display it as html with wrapping text. pandoc https://pandoc.org/ can convert LaTex and roff man to other formats like markdown, RST, and html. texi2roff can convert texi to groff -me, -mm, or -ms. I m

Re: coreutils/man/rm.x - fails to mention POSIX "Refuse to remove path/. and path/.., as well as `.' and `..'

2023-09-25 Thread William Bader
>No, people used to regularly boggle at why info still exists: I found info clumsy in the 80's but not out of line for 80's technology. Using info now is like using lynx as a web browser. There used to be gui versions like xinfo and tkinfo, but why have dedicated readers for a special format whe

Re: [PATCH] tests: fix typo in ls-time.sh

2025-01-19 Thread William Bader
Instead of adding the line "set --", how about changing "set $(ls $def_sort a B c)" to "set — $(ls $def_sort a B c)" ? From: coreutils-bounces+williambader=hotmail@gnu.org on behalf of Philip Rowlands Sent: Sunday, January 19, 2025 5:56 PM To: Pádraig Brad