[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Adding option to select file types
From: |
lisa-asket |
Subject: |
Adding option to select file types |
Date: |
Tue, 6 Jul 2021 01:39:10 +0200 (CEST) |
From: Greg Wooledge <greg@wooledge.org>
To: help-bash@gnu.org
Subject: Re: Adding option to select file types
Date: 06/07/2021 00:58:59 Europe/Paris
On Tue, Jul 06, 2021 at 12:49:22AM +0200, lisa-asket@perso.be wrote:
> For the options I have done the following. Do you like it?
>
> opts=$(getopt -o "$shortopts" -l "$longopts" -n "$(basename $0)" -- "$@")
No. getopt(1) is pure evil.
https://mywiki.wooledge.org/BashFAQ/035
I am evil myself, so it's fine. Could Gnu Bash improve on getopt and make it
the way
gnu likes it done?