bug-cssc
[Top][All Lists]
Advanced

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

[Bug-cssc] [bug #57689] POSIX accepts spaces in get -r


From: Bogdan Barbu
Subject: [Bug-cssc] [bug #57689] POSIX accepts spaces in get -r
Date: Wed, 9 Oct 2024 17:23:04 -0400 (EDT)

Follow-up Comment #2, bug #57689 (group cssc):

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.


    _______________________________________________________

Reply to this item at:

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

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

Attachment: signature.asc
Description: PGP signature


reply via email to

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