#668973 bash-completion: completion for ls misses the --full-time option

#668973#5
Date:
2012-04-16 08:16:17 UTC
From:
To:
AFAICT the completion for ls misses the --full-time option:

pabs@chianamo ~ $ ls --f
--file-type  --format=    
pabs@chianamo ~ $ ls --f
ls: option '--f' is ambiguous; possibilities: '--full-time' '--format' '--file-type'
Try `ls --help' for more information.
pabs@chianamo ~ $ ls --full-time
total 64K
...

#668973#10
Date:
2012-04-21 07:32:22 UTC
From:
To:
It does indeed.  The line where --full-time is in --help output trips
our _longopt function:

$ echo "--full-time            like -l --time-style=full-iso" \
| sed -ne 's/.*\(--[-A-Za-z0-9]\{1,\}=\{0,1\}\).*/\1/p'
--time-style=

_parse_help would work better.

#668973#15
Date:
2018-02-18 23:38:17 UTC
From:
To:
On Sat, 21 Apr 2012 10:32:22 +0300 =?ISO-8859-1?Q?Ville_Skytt=E4?= <ville.skytta@iki.fi> wrote:
Maybe use

grep -o '\(--[-A-Za-z0-9]\{1,\}=\{0,1\}\)' ?

Not sure if "grep -o" is portable as sed, maybe use grep where it has
--only-matching option ?

Regards

#668973#20
Date:
2021-09-22 04:20:13 UTC
From:
To:
Hello,

Good morning,

We have gone through your samples from a partner and Here is our  Order
List. Please do bear in mind that we are very much in  need of this
order, quote your competitive prices.

Kindly send the Order confirmation.

Your early reply will be much appreciated.

Best Regards,

Maryanah Erwin.

PT FINDORA INTERNUSA

Jln Pahlawan 66 Kec. Arjawinangun

45162 CIREBON West-Java INDONESIA

tel : +62 231 357334

fax: +62 231 357260

email: marketing@findora.com