bugGNU roff - Bugs: bug #64684, [nroff] would like support for...

 
 

bug #64684: [nroff] would like support for option clusters

Submitter:  G. Branden Robinson <gbranden>
Submitted:  Sat 16 Sep 2023 10:59:55 PM UTC
   
 
Category:  Core Severity:  1 - Wish
Item Group:  Feature change Status:  Fixed
Privacy:  Public Assigned to:  gbranden
Open/Closed:  Closed Planned Release:  1.24.0
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 12 Jul 2024 08:39:33 PM UTC, comment #2: 


commit 24d4975ebe515a9e3530c738822603aeccb96cde
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
Date:   Fri Jul 12 10:01:40 2024 -0500

    [nroff]: Support argument clustering.

    * src/roff/nroff/nroff.sh: Support argument clustering by iterating over
      the argument list and declustering options that can be clustered
      (`-abCEikpRStUzZ`).

    * src/roff/nroff/tests/verbose_option_works.sh: Test it.

    * NEWS: Document it.

    Fixes <https://savannah.gnu.org/bugs/?64684>.


G. Branden Robinson <gbranden>
Group administrator
Sat 27 Jan 2024 06:05:37 AM UTC, comment #1: 

Nit: -a is not a recognized nroff option, so that specific command would fail anyway.

Dave <barx>
Group Member
Sat 16 Sep 2023 10:59:55 PM UTC, original submission:  

This is unfortunate.


$ groff -atz ./EXPERIMENTS/simple-table.roff # successful
$ nroff -atz ./EXPERIMENTS/simple-table.roff
/home/branden/groff-stable/bin/nroff: usage error: invalid option '-at'
usage: /home/branden/groff-stable/bin/nroff [-bcCEhikpRStUVz] [-d ctext] [-d string=text] [-K fallback-encoding] [-m macro-package] [-M macro-directory] [-n page-number] [-o page-list] [-P postprocessor-argument] [-r cnumeric-expression] [-r register=numeric-expression] [-T output-device] [-w warning-category] [-W warning-category] [file ...]
usage: /home/branden/groff-stable/bin/nroff {-v | --version}
usage: /home/branden/groff-stable/bin/nroff --help


Might be tricky to handle in a shell script.  Could require recursive parsing, or "unshifting" arguments onto the list in addition to the well-trodden ground of shifting them off.

G. Branden Robinson <gbranden>
Group administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by barx (Posted a comment)
  • -email is unavailable- added by gbranden (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2024-07-12 gbranden StatusIn Progress Fixed
        Open/ClosedOpen Closed
        Planned ReleaseNone 1.24.0
    2024-07-12 gbranden StatusNone In Progress
        Assigned toNone gbranden

    Back to the top

    Powered by Savane 3.13-3e34.
    Corresponding source code