[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #65759] handling of "-" and "--" on command line
|
From: |
Paul D. Smith |
|
Subject: |
[bug #65759] handling of "-" and "--" on command line |
|
Date: |
Sun, 19 May 2024 18:02:45 -0400 (EDT) |
Follow-up Comment #1, bug #65759 (group make):
The behavior of "make --" is as expected because according to the POSIX
standard, the argument *--* specifies that no files after it are to be
considered options even if they begin with "-".
So for example if you wanted to make a target named *-f* you can't use *make
-f* because "-f" is a valid option name. You'd have to use *make -- -f*.
However, I do agree that *make -* (one dash) should be considered an error.
Many programs use a single dash to mean "read from stdin" but make doesn't do
this.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?65759>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/