[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] Stop run-time option processing after first "-:" or non-runtime
From: |
Peter Bex |
Subject: |
[PATCH] Stop run-time option processing after first "-:" or non-runtime option (was: Re: [PATCH] stop run-time option processing after "--") |
Date: |
Fri, 24 Mar 2023 10:50:24 +0100 |
On Tue, Mar 14, 2023 at 08:43:52AM +0100, Peter Bex wrote:
> On Tue, Mar 14, 2023 at 08:40:18AM +0100, felix.winkelmann@bevuta.com wrote:
> > Backwards compatibility is from now on fucked anyway, so let's
> > try to find somethin simple and sensible.
>
> Then we should do both. I.e., have -: to explicitly tell it to stop
> parsing (and have that dropped from the command-line-options) and
> stop at the first argument. The -: would be in situations where
> a script just passes on all its arguments, like
>
> ./my-program -: "$@"
Here's a patch that implements this proposal.
Cheers,
Peter
0001-Stop-run-time-option-processing-after-or-the-first-n.patch
Description: Text document
signature.asc
Description: PGP signature
Re: [PATCH] stop run-time option processing after "--", felix . winkelmann, 2023/03/13