Jim Meyering <[EMAIL PROTECTED]> writes:

> As planned, here's the change to revert stat --format=FMT to
> its previous behavior.  Note that with this change, backslash
> escapes in a --format-specified format string are *not* interpreted.

Looks good.  A couple of minor comments.

Unless I read the code wrong, that patch mishandles the case
where the printf format string ends in backslash, e.g., --printf='\'.

This proposal supports \" but not \' or \? (meaning ", ', ?,
respectively, the same as C).  I just checked Bash 3.1, and its printf
supports \', \", and \?.  Perhaps coreutils printf formats should do
the same, for consistency.  Bash printf also supports \e (ESC) and \E
(ESC); that's not in C, but it might be useful to add that as well,
for consistency.  This would apply both to stat and to printf.


_______________________________________________
Bug-coreutils mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-coreutils

Reply via email to