about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp>2017-12-20 00:49:26 +0900
committerJun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp>2017-12-20 00:49:26 +0900
commit972cf4197ef21aa1caa7a3fe721d5b2e8930da0d (patch)
tree7d953e89e7e5e86c4b798039bd8b407f7319f6b3
parentdae5d1d5ba8d1e3035d8bc299f221c54e8c90de6 (diff)
downloadzsh-972cf4197ef21aa1caa7a3fe721d5b2e8930da0d.tar.gz
zsh-972cf4197ef21aa1caa7a3fe721d5b2e8930da0d.tar.xz
zsh-972cf4197ef21aa1caa7a3fe721d5b2e8930da0d.zip
* 42143: fix a pattern in _object_files
-rw-r--r--ChangeLog5
-rw-r--r--Completion/Unix/Type/_object_files3
2 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 60bbcf640..30058dce3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2017-12-20  Jun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp>
+
+	* 42143: Completion/Unix/Type/_object_files: fix a pattern for
+	matching object files
+
 2017-12-18  Jun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp>
 
 	* 42412: Src/Zle/zle_word.c: fix a bug in 42116. Also fix a few
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'
 
 __object_file() {
-  [[ -x $REPLY || $REPLY = *.([ao]|so|elf)(.<->)## || $REPLY = (core*|*.core) ]]
+  [[ -x $REPLY || $REPLY = *.(a|o|elf) || $REPLY = *.so(.<->)# ||
+	$REPLY = (core*|*.core) ]]
 }
 
 _files -g '*(-.e,__object_file,)'