bugGNU CSSC - Bugs: bug #57689, POSIX accepts spaces in get -r

 
 

bug #57689: POSIX accepts spaces in get -r

Submitter:  Bogdan Barbu <love4boobies>
Submitted:  Tue 28 Jan 2020 11:14:33 PM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 09 Oct 2024 09:23:00 PM UTC, comment #2: 

I came back needing SCCS and again my scripts failed, even after all this time. I decided to look into it myself and the issue is that in lines like the following from get.cc:

  class CSSC_Options opts(argc, argv, "r!c!i!x!ebkl!psmngtw!a!DVG!L",
                          EXITVAL_INVALID_OPTION);

we're using "!" instead of ":" which would also accept separated options and option arguments. However, the comment at the beginning of my-getopt.cc suggests that this is done to preserve compatibility with the original SCCS. If you're really set on keeping this behavior which violates POSIX I at least propose a solution in the spirit of other GNU utilities: use ":" when the POSIXLY_CORRECT environment variable is defined. Please.

Bogdan Barbu <love4boobies>
Tue 28 May 2024 04:07:36 PM UTC, comment #1: 

i have some scripts that i need to go through and manually edit due to this issue. strange, one would expect this 4 year old bug report to be looked at by now since it sounds like a simple fix?

Anonymous
Tue 28 Jan 2020 11:14:33 PM UTC, original submission:  

Although I believe the original SCCS implementation was compatible with CSSC, POSIX mandates that spaces work for the -r option in the "get" utility in situations like the following:

get -r 1.1 s.foo.c

This should be a simple fix so I thought I'd report it.

Bogdan Barbu <love4boobies>

 

(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 love4boobies (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.

     

    No changes have been made to this item

    Back to the top

    Powered by Savane 3.15-e6e5.
    Corresponding source code