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

Re: Portabilities issues of the completion



In article <mv4hfiuuuf1.fsf@xxxxxxxxxxxxxxxxxxxxxx>,
  Akim Demaille <akim@xxxxxxxx> writes:

> My previous mail contains a mistake: use ?, not \?.  Though it should
> not make differences, AFAICT.

Thanks. I didn't know that (a|) is not portable.

But 8612 has mistake. It uses \? for second match.
This patch should be applyed over 8612.

Index: Completion/User/_make
===================================================================
RCS file: /projects/zsh/zsh/Completion/User/_make,v
retrieving revision 1.1.1.13
diff -u -r1.1.1.13 _make
--- Completion/User/_make	1999/11/10 19:27:53	1.1.1.13
+++ Completion/User/_make	1999/11/10 19:35:41
@@ -22,7 +22,7 @@
   [[ -n "$file" ]] &&
     compadd "$expl[@]" - \
       $(awk '/^[a-zA-Z0-9][^\/ \t]+:/ {print $1}
-	     /^\.include  *<bsd\.port\.(subdir\.|pre\.)?mk>/ || /^\.include  *".*mk\/bsd\.pkg\.(subdir\.)\?mk"/ {
+	     /^\.include  *<bsd\.port\.(subdir\.|pre\.)?mk>/ || /^\.include  *".*mk\/bsd\.pkg\.(subdir\.)?mk"/ {
 	       print "fetch fetch-list extract patch configure build install reinstall deinstall package describe checkpatch checksum makesum" }' \
 	    FS=: $file) && ret=0
   (( ret )) && { compset -P 1 '*\='; _files }
-- 
Tanaka Akira



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