[bug #65759] handling of "-" and "--" on command line

2024-10-01 Thread Paul D. Smith
Update of bug #65759 (group make): Item Group: Bug => Documentation Status:None => Fixed Assigned to:None => psmith Open/Closed:

[bug #65759] handling of "-" and "--" on command line

2024-05-22 Thread Paul D. Smith
Follow-up Comment #5, bug #65759 (group make): I looked through the code. This is explicitly handled, and ignored, with a commit message by Roland from 1995 saying only: commit 636435e5c25d39fc5d52edf936e8e7a410b31b1a Author: Roland McGrath Date: 1995-03-07 22:31:01 + (decode_switche

[bug #65759] handling of "-" and "--" on command line

2024-05-20 Thread anonymous
Follow-up Comment #4, bug #65759 (group make): (original poster) Understood about --. WRT -, I don't think it should be an error, I think it should be treated as a filename as Dmitry says. IMHO the interesting question is: given that - should be treated as a valid filename, should it be required

[bug #65759] handling of "-" and "--" on command line

2024-05-20 Thread Paul D. Smith
Follow-up Comment #3, bug #65759 (group make): Yes it is a valid filename but the problem, as pointed out in the original description, is that make doesn't treat it that way. At least not all the time. It appears that the code wants to treat it as if you'd used "-f-" but it doesn't appear to wor

Re: [bug #65759] handling of "-" and "--" on command line

2024-05-20 Thread Paul Smith
On Mon, 2024-05-20 at 07:25 +0200, Henrik Carlqvist wrote: > On Sun, 19 May 2024 18:02:45 -0400 (EDT) > > Many programs use a single dash to mean "read from stdin" but make > > doesn't > > do this. > > Yes, it does: > > -8< > nazgul:/tmp> make -f - Yes, if

Re: [bug #65759] handling of "-" and "--" on command line

2024-05-19 Thread Henrik Carlqvist
On Sun, 19 May 2024 18:02:45 -0400 (EDT) > Many programs use a single dash to mean "read from stdin" but make doesn't > do this. Yes, it does: -8< nazgul:/tmp> make -f - all: ; echo hello ** pressing ctrl-d on this next line ** echo hello hello nazgul:/tmp>

[bug #65759] handling of "-" and "--" on command line

2024-05-19 Thread Dmitry Goncharov
Follow-up Comment #2, bug #65759 (group make): - is a valid filename. i think, everybody would be better off, with one and only one syntax of having make read from stdin. ___ Reply to this item at:

[bug #65759] handling of "-" and "--" on command line

2024-05-19 Thread Paul D. Smith
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* yo

[bug #65759] handling of "-" and "--" on command line

2024-05-19 Thread anonymous
URL: Summary: handling of "-" and "--" on command line Group: make Submitter: None Submitted: Sun 19 May 2024 02:35:54 PM UTC Severity: 3 - Normal Item Group: Bu