[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Tinycc-devel] Implementation of '--' argument
From: |
certanan |
Subject: |
Re: [Tinycc-devel] Implementation of '--' argument |
Date: |
Sun, 16 Apr 2023 18:10:44 +0000 |
>From experience, when a program invoked by a shell sees the '--' flag, it
>stops looking for options.
$ grep -V // print grep version
grep (GNU grep) 3.8
...
$ grep -- -V // match for '-V'
[waiting for stdin where matching for '-V' will occur]
If I'm not mistaken, tcc expects only file-names and options as arguments (if
no file-names are provided, it reads code from stdin). Hence after '--' it
would treat all arguments as file-names or resort to reading code from stdin if
none are provided.
- certanan
------- Original Message -------
On Sunday, April 16th, 2023 at 5:46 PM, grischka <grishka@gmx.de> wrote:
> On 15.04.2023 22:38, certanan via Tinycc-devel wrote:
>
> > From what it seems to me, even Bellard's QEmacs seems to be relying on
> > this, rather, standard feature since at least 19 years ago, as referenced
> > in its official GitHub repository.
> > Am I missing something cardinal, or is there, indeed, no valid reason for
> > this seemingly not being implemented in tcc? Should the former be the case,
> > I would appreciate if someone informed me of it. Otherwise, I have a patch
> > on standby, ready to push the feature to mob.
>
>
> Sorry, what this "the feature"? Mind do add a little more information
> what you're talking about, how it's supposed to be used, examples... ?
>
> -- gr
>
- [Tinycc-devel] Implementation of '--' argument, certanan, 2023/04/15
- Re: [Tinycc-devel] Implementation of '--' argument, grischka, 2023/04/16
- Re: [Tinycc-devel] Implementation of '--' argument,
certanan <=
- Re: [Tinycc-devel] Implementation of '--' argument, Herman ten Brugge, 2023/04/16
- Re: [Tinycc-devel] Implementation of '--' argument, certanan, 2023/04/16
- Re: [Tinycc-devel] Implementation of '--' argument, avih, 2023/04/17
- Re: [Tinycc-devel] Implementation of '--' argument, grischka, 2023/04/17
- Re: [Tinycc-devel] Implementation of '--' argument, ian, 2023/04/17
- Re: [Tinycc-devel] Implementation of '--' argument, certanan, 2023/04/18
- Re: [Tinycc-devel] Implementation of '--' argument, grischka, 2023/04/18
- Re: [Tinycc-devel] Implementation of '--' argument, certanan, 2023/04/18