bug-gnulib
[Top][All Lists]
Advanced

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

Re: [PATCH] bootstrap: use a more consistent error reporting scheme.


From: Thien-Thi Nguyen
Subject: Re: [PATCH] bootstrap: use a more consistent error reporting scheme.
Date: Fri, 06 Jul 2012 17:43:27 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1 (gnu/linux)

() Akim Demaille <address@hidden>
() Fri, 6 Jul 2012 16:40:37 +0200

   But we have to worry about ',' in $me, which is $0, not
   its basename.  Do you want me (Akim, not the variable)
   to change me (the variable, not Akim; not that I am
   immutable) to basename and use / in the sed command,
   instead of ','?

   # warnf_ FORMAT-STRING ARG1...
   warnf_ ()
   {
     warnf_format_=$1
     shift
     printf "$warnf_format_" "$@" | sed "s,^,$me: ," >&2
   }

Instead of these contortions, what about:

  printf "%s: $warnf_format" "$me" "$@"

?



reply via email to

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