[Top][All Lists]

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

[bug #64100] wish/request: please reserve -printf "%V %v %E %R %r %B %e

From: James Youngman
Subject: [bug #64100] wish/request: please reserve -printf "%V %v %E %R %r %B %e %J %I %z %x %X %j"
Date: Mon, 24 Apr 2023 13:20:04 -0400 (EDT)

Follow-up Comment #1, bug #64100 (project findutils):

This is quite a sizeable chunk of the available namespace.  

I suggest instead we agree a compatible way to extend things while staying
mostly out of each other's way.   Here's a strawman:


Here "flags" is the usual size and so on.   ns/ns/path is just a namespace
which serves to prevent collision and keyword describes the data to be
formatted.   For example, 


might print the version number of a file, left-justified in a column of width
20.   Other implementations of course would be welcome to implement formatting
for gnu/find:version of course.

We put the flags after ! instead of before the { so that we don't have to skip
over flags to look at the keyword, and then have to go back to parse and
understand the flags.

I'm not sure that using : twice inside {} is a great idea because a different
choice would probably make parsing easier.   Since my first choice was !, I
changed my mind because of the need/difficulty of escaping ! on Unix systems. 
So I fell back on : but maybe there's a better choice.

This idea, by the way, is why GNU find's documentation lists %{ as reserved
for future use.


Reply to this item at:


Message sent via Savannah

reply via email to

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