From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22516 invoked by alias); 18 Dec 2017 13:07:42 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: List-Unsubscribe: X-Seq: 42143 Received: (qmail 6773 invoked by uid 1010); 18 Dec 2017 13:07:42 -0000 X-Qmail-Scanner-Diagnostics: from rcpt-mqugw.biglobe.ne.jp by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(133.208.100.3):SA:0(-2.6/5.0):. Processed in 0.949618 secs); 18 Dec 2017 13:07:42 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, SPF_PASS,T_RP_MATCHES_RCVD autolearn=ham autolearn_force=no version=3.4.1 X-Envelope-From: takimoto-j@kba.biglobe.ne.jp X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | X-Biglobe-Sender: From: Jun T Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: [PATCH] _object_files: trailing version number for *.so is optional Message-Id: Date: Mon, 18 Dec 2017 21:03:35 +0900 To: zsh-workers@zsh.org X-Mailer: Apple Mail (2.3273) X-Biglobe-Spnum: 64601 I've noticed that zsh% objdump does not complete any object files (*.o) which do not have execute = permission. This is due to the '##' in the condition $REPLY =3D *.([ao]|so|elf)(.<->)## in _object_files. The trailing version number (.<->) is not required but optional. In the patch below, I allowed the version number only for *.so. diff --git a/Completion/Unix/Type/_object_files = b/Completion/Unix/Type/_object_files index 31a13aefc..70b5b6688 100644 --- a/Completion/Unix/Type/_object_files +++ b/Completion/Unix/Type/_object_files @@ -5,7 +5,8 @@ local expl _description files expl 'object file' =20 __object_file() { - [[ -x $REPLY || $REPLY =3D *.([ao]|so|elf)(.<->)## || $REPLY =3D = (core*|*.core) ]] + [[ -x $REPLY || $REPLY =3D *.(a|o|elf) || $REPLY =3D *.so(.<->)# || + $REPLY =3D (core*|*.core) ]] } =20 _files -g '*(-.e,__object_file,)'