Bug#668973: [Bash-completion-devel] Bug#668973: bash-completion: completion for ls misses the --full-time option
On Sat, 21 Apr 2012 10:32:22 +0300 =?ISO-8859-1?Q?Ville_Skytt=E4?=wrote: > On 2012-04-16 11:16, Paul Wise wrote: > > > AFAICT the completion for ls misses the --full-time option: > > It does indeed. The line where --full-time is in --help output trips > our _longopt function: > > $ echo "--full-timelike -l --time-style=full-iso" \ > | sed -ne 's/.*\(--[-A-Za-z0-9]\{1,\}=\{0,1\}\).*/\1/p' > --time-style= > > _parse_help would work better. > > > 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
Bug#668973: [Bash-completion-devel] Bug#668973: bash-completion: completion for ls misses the --full-time option
On 2012-04-16 11:16, Paul Wise wrote: AFAICT the completion for ls misses the --full-time option: It does indeed. The line where --full-time is in --help output trips our _longopt function: $ echo --full-timelike -l --time-style=full-iso \ | sed -ne 's/.*\(--[-A-Za-z0-9]\{1,\}=\{0,1\}\).*/\1/p' --time-style= _parse_help would work better. -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#668973: bash-completion: completion for ls misses the --full-time option
Package: bash-completion Version: 1:1.99-3 Severity: normal 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 ... -- System Information: Debian Release: wheezy/sid APT prefers testing APT policy: (700, 'testing'), (600, 'unstable'), (550, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 3.3.0-trunk-amd64 (SMP w/4 CPU cores) Locale: LANG=en_AU.utf8, LC_CTYPE=en_AU.utf8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages bash-completion depends on: ii bash 4.2-2 -- bye, pabs http://wiki.debian.org/PaulWise signature.asc Description: This is a digitally signed message part