bug-groff
[Top][All Lists]
Advanced

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

[bug #60943] [nroff] should accept whitespace between option and option


From: G. Branden Robinson
Subject: [bug #60943] [nroff] should accept whitespace between option and option argument
Date: Mon, 19 Jul 2021 14:37:01 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0

Update of bug #60943 (project groff):

                  Status:             In Progress => Fixed                  
             Open/Closed:                    Open => Closed                 
         Planned Release:                    None => 1.23.0                 

    _______________________________________________________

Follow-up Comment #1:


commit 2b955c571c6b62a16f710961094c68928d74a0c4
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
Date:   Tue Jul 20 02:47:42 2021 +1000

    [nroff]: Fix Savannah #60943.
    
    * src/roff/nroff/nroff.sh: Add new `is_option_argument_pending` flag to
      add an additional state to the option parser.  Set it if an
      argument-requiring option is encountered with no abutting argument.
      If it is set when a new argument is encountered, absorb the argument
      into the groff option list and clear the flag.  Moderize script in a
      couple of other ways.
      - Exit with status 2 upon usage errors so that this is
        condition is easily distinguished form a groff abort (which
        exits with status 1).
      - Test shell variables for non-nullity with test(1) -n operator
        instead of a string comparison.
    
    * src/roff/nroff/tests/verbose_option_works.sh: Test correct
      construction of groff command using this input form.
    
    * src/roff/nroff/nroff.1.man (Options): Add spaces between option flags
      and option arguments.  Sync metasyntactic variable names with groff(1)
      while we're at it.
    
      (Description): Drop sentence warning of whitespace prohibition.
    
      (Exit status): Add new section.
    
    * NEWS: Add item since the interface changed.
    
    Fixes <https://savannah.gnu.org/bugs/?60943>.


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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