Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

_tiff completion



Hi,

is there a reason, why in the _tiff completion function in the general 
and ,,_wanted ... picture file'' part only *.tiff and not *.tif(|f) gets 
completed -- like in the remaining function?

I've attached a tiny patch (hopefully in the correct format) to change this.

Best regards, and thanks for the Z Shell!

Manuel.
diff --git a/Completion/Unix/Command/_tiff b/Completion/Unix/Command/_tiff
index 588476d..c4e5c7c 100644
--- a/Completion/Unix/Command/_tiff
+++ b/Completion/Unix/Command/_tiff
@@ -5,7 +5,7 @@ local pat expl ret=1
 if [[ "$service" = *2tiff ]]; then
   pat="*.(#i)${service}(-.)"
 else
-  pat='*.(#i)tiff(-.)'
+  pat='*.(#i)tif(|f)(-.)'
 fi
 
 if [[ $# -ne 0 || $+_in_tiff -ne 0 ]]; then
@@ -14,7 +14,7 @@ if [[ $# -ne 0 || $+_in_tiff -ne 0 ]]; then
     set -- "$expl[@]"
   fi
   _wanted files expl 'picture file' _path_files "$@" -g "$pat" - ||
-      _files "$@" "$expl[@]" -g '*.(#i)tiff(-.)'
+      _files "$@" "$expl[@]" -g '*.(#i)tif(|f)(-.)'
   return
 fi
 


Messages sorted by: Reverse Date, Date, Thread, Author