Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail From: marrgol Newsgroups: comp.os.linux.misc Subject: Re: Useless Use Of Regexes Date: Fri, 28 Mar 2025 12:21:20 +0100 Organization: A noiseless patient Spider Lines: 15 Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Fri, 28 Mar 2025 12:21:21 +0100 (CET) Injection-Info: dont-email.me; posting-host="e5498eb0c7cbef56375d0b6d9329ae66"; logging-data="2642336"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+86EF5pp/+vaJluccY4NHg" User-Agent: Mozilla/5.0 (rv:102.0) Gecko/20100101, Betterbird/102 Cancel-Lock: sha1:cdhGaLW361cpXL+Uy7kbLEkKNEo= Content-Language: en-GB, pl In-Reply-To: Bytes: 1825 On 2025-03-27 at 22:05 Lawrence D'Oliveiro wrote: >>>> You could have it easier with getopt ... >>> >>> Last I checked, getopt doesn’t do long options. >> >> You should check again. > > ldo@theon:~> help getopt > getopts: getopts optstring name [arg ...] > […] You're quoting help to 'getopts' shell built-in command -- you are mistaking it for 'getopt' program from util-linux.