Re: [Groff] [PATCH] mdate.sh: rewrite in Perl

2017-02-18 Thread James K. Lowden
On Sat, 18 Feb 2017 03:28:03 + Colin Watson wrote: > This version is much shorter and easier to understand than the > shell/awk version: we don't have to worry about convincing ls to > produce output that we can parse, and we don't have to play games > with the way that the same field may con

Re: [Groff] [PATCH] mdate.sh: rewrite in Perl

2017-02-18 Thread walter harms
Am 18.02.2017 19:07, schrieb James K. Lowden: > On Sat, 18 Feb 2017 03:28:03 + > Colin Watson wrote: > >> This version is much shorter and easier to understand than the >> shell/awk version: we don't have to worry about convincing ls to >> produce output that we can parse, and we don't have

Re: [Groff] [PATCH] mdate.sh: rewrite in Perl

2017-02-18 Thread Ralph Corderoy
Hi wh, > I dont know why this is needed in the first place, but maybe stat(1) > can help here ? I'm guessing stat(1) isn't portable? It's not in my stat(1p) man page section. If the C does make it, then it would be nice if the exit status wasn't zero when a something went wrong, e.g. file not f

Re: [Groff] [PATCH] mdate.sh: rewrite in Perl

2017-02-18 Thread Colin Watson
On Sat, Feb 18, 2017 at 01:07:38PM -0500, James K. Lowden wrote: > On Sat, 18 Feb 2017 03:28:03 + > Colin Watson wrote: > > This version is much shorter and easier to understand than the > > shell/awk version: we don't have to worry about convincing ls to > > produce output that we can parse,