Follow-up Comment #9, bug #62264 (group groff):

I'm not sure how a reverse iterator is supposed to work with compatibility
mode save and restore tokens.  An `rfor` request seems to me, at this time, to
be dangerous.

One could still achieve results like _basename_(1) with a forward iterator.

Sketch:


 .\" Store "basename" of $1 in string named $2.
.de basename
.  ds tmp \" empty
.  for ch \\$1 \{\
.    ie '\\*[ch]'/' .ds tmp \" empty
.    el                .as tmp \\*[ch]
.  \}
.  ds \\$2 \\*[tmp]
.  rm tmp
..




    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?62264>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/

Attachment: signature.asc
Description: PGP signature

Reply via email to