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 <gris...@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 mailing list
Tinycc-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/tinycc-devel

Reply via email to