bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: "pr -D FORMAT" fixes, to match "date +FORMAT"


From: Jim Meyering
Subject: Re: "pr -D FORMAT" fixes, to match "date +FORMAT"
Date: Sat, 19 Mar 2005 15:22:18 +0100

Paul Eggert <address@hidden> wrote:
> The command pr -D FORMAT is documented to use the same format strings
> that date +FORMAT does, but this isn't currently true because the
> former uses strftime and the latter uses nstrftime.  For example, pr
> -D%N doesn't work.  I installed this patch to fix things.  This also
> has the effect of removing a portability assumption when strftime
> returns zero.

Thanks.
Though I have to admit it feels almost like overkill to add all
of that just to get %N (nanoseconds) for use in pr's page headers.
Of course, you did the work, and it does make the code match the
documentation, so I'm not complaining.

I've made this additional change so pr builds once again.

2005-03-19  Jim Meyering  <address@hidden>

        * src/Makefile.am (pr_LDADD): Now that pr uses gettime, add
        $(LIB_CLOCK_GETTIME) to get the required -lrt on newer Linux systems.

Index: src/Makefile.am
===================================================================
RCS file: /fetish/cu/src/Makefile.am,v
retrieving revision 1.52
retrieving revision 1.53
diff -u -p -u -r1.52 -r1.53
--- src/Makefile.am     1 Mar 2005 17:28:49 -0000       1.52
+++ src/Makefile.am     19 Mar 2005 13:58:51 -0000      1.53
@@ -46,6 +46,7 @@ __LDADD = $(LDADD) $(LIB_EACCESS)
 dd_LDADD = $(LDADD) $(LIB_GETHRXTIME) $(LIB_FDATASYNC)
 dir_LDADD = $(LDADD) $(LIB_CLOCK_GETTIME)
 ls_LDADD = $(LDADD) $(LIB_CLOCK_GETTIME)
+pr_LDADD = $(LDADD) $(LIB_CLOCK_GETTIME)
 shred_LDADD = $(LDADD) $(LIB_GETHRXTIME) $(LIB_FDATASYNC)
 vdir_LDADD = $(LDADD) $(LIB_CLOCK_GETTIME)
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]