From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16180 invoked by alias); 21 Feb 2013 10:01:17 -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: X-Seq: 31058 Received: (qmail 24745 invoked from network); 21 Feb 2013 10:01:11 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED,RCVD_IN_DNSWL_NONE, T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=no version=3.3.2 Received-SPF: none (ns1.primenet.com.au: domain at yahoo.co.uk does not designate permitted sender hosts) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.uk; s=s1024; t=1361440523; bh=u//5AGH3bBef0pZ6P0SI3fOLdXwhskZ2Xdhf5NQCLeU=; h=X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:Received:Received:From:To:Subject:Date:Message-ID; b=lULZF+DEWYl9gRXCOLYzgKtJJTIAttVFUIgxoiw0bUDMhlniIx/wGOakqoOZKhR6f9TTzYszPS4CXGVwzkJnDL/EdmbUSfFgqf7j1Sd/cQpGefGsBkVLVZtOnUEJyhVlBJ4FoIDsI8UgxEd6vmcgh0K91EOFzhz/ipEd9uF4pFE= X-Yahoo-Newman-Id: 202978.82537.bm@smtp129.mail.ird.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: jLOhgt4VM1mlmqb4GLjOM9sb.s2j1WWP9PGqNpL2zMmM4BY b6JZ7s5u2wLqeA14xf6nhejV1XOMjAJPab.xF3EHmPwZ46ZXJ4Q_k184Y1gH iUGnZjX1m8lhIxpexN8likie9VvkhtCs37tgqup9S01jsH8RlKeKbpUSOYb1 BV7mECxilEflRm7eqFvDpTpr1bw8yFxiVPM8Qp18er1LFKDaXTuQXfSfsU9P HGUiDHVypMzkQEhQqI3BJ4M.Ru2s54FmwZfnosWbMzxw6kOqCxr7V.qKYNeD 5QRcb6N1gA_a2BZH.KWI5x.tqgYr4m.qULljfhLfUoHdJUIRy0pqsJfzD8au 2U9HkMkFR02AXO14fVvMCpIayfKRzHrSdReViNQgsERedkXPS6TwMtMi6Rum BgWCyB_ZcHUsci.4kFmP3O9ijTG83VJ7eT5YZgSbhbEb0XA-- X-Yahoo-SMTP: opAkk_CswBAce_kJ3nIPlH80cJI- From: Oliver Kiddle To: Zsh workers Subject: PATCH: minor completion function updates Date: Thu, 21 Feb 2013 10:55:22 +0100 Message-ID: <14261.1361440522@thecus.kiddle.eu> This adds some options on newer versions of GNU sed, wget, xmllint, fc and fixes the spelling in _cut. Oliver Index: Completion/Unix/Command/_cut =================================================================== RCS file: /cvsroot/zsh/zsh/Completion/Unix/Command/_cut,v retrieving revision 1.7 diff -u -r1.7 _cut --- Completion/Unix/Command/_cut 6 Feb 2008 01:30:29 -0000 1.7 +++ Completion/Unix/Command/_cut 21 Feb 2013 09:48:45 -0000 @@ -37,22 +37,22 @@ _arguments \ '(--bytes -b)'{--bytes=,-b+}'['$_cut_args[bytes]']:list' \ '(--characters -c)'{--characters=,-c+}'['$_cut_args[characters]']:list' \ - '(--delimiter -d)'{--delimiter=,-d+}'['$_cut_args[delimiter]']:delimeter' \ + '(--delimiter -d)'{--delimiter=,-d+}'['$_cut_args[delimiter]']:delimiter' \ '(--fields -f)'{--fields=,-f+}'['$_cut_args[fields]']:list' \ '-n['$_cut_args[n]']' \ '--complement['$_cut_args[complement]']' \ '(--only-delimited -s)'{--only-delimited,-s}'['$_cut_args[only-delimited]']' \ - '--output-delimiter=['$_cut_args[output-delimiter]']:delimeter' \ - '--help['$_cut_args[help]']' \ - '--version['$_cut_args[version]']' \ + '--output-delimiter=['$_cut_args[output-delimiter]']:delimiter' \ + '(- *)--help['$_cut_args[help]']' \ + '(- *)--version['$_cut_args[version]']' \ '*:file:_files' else _arguments \ '-b[list specifies byte positions]:list:' \ '-c[list specifies character positions]:list:' \ - '-d[use alternate delimeter]:delimeter:' \ + '-d[use alternate delimiter]:delimiter' \ '-f[list specifies fields]:list:' \ '-n[do not split multi-byte characters]' \ - '-s[suppress lines with no delimeters]' \ + '-s[suppress lines with no delimiters]' \ '*:file:_files' fi Index: Completion/Unix/Command/_sed =================================================================== RCS file: /cvsroot/zsh/zsh/Completion/Unix/Command/_sed,v retrieving revision 1.3 diff -u -r1.3 _sed --- Completion/Unix/Command/_sed 16 Jan 2008 22:27:43 -0000 1.3 +++ Completion/Unix/Command/_sed 21 Feb 2013 09:48:45 -0000 @@ -12,8 +12,10 @@ if _pick_variant gnu=GNU unix --version; then args+=( + '--follow-symlinks[follow symlinks when processing in place]' '(-i --in-place)'{-i-,--in-place=-}'[edit files in place]::suffix for backup' '(-l --line-length)'{-l,--line-length=-}'[specify line-wrap length for the l command]' + '(-r)--posix[disable GNU extensions]' '(-r --regexp-extended)'{-r,--regexp-extended}'[use extended regular expressions]' '(-s --separate)'{-s,--separate}'[consider files separately instead of as a combined stream]' '(-u --unbuffered)'{-u,--unbuffered}'[disable data buffering]' Index: Completion/Unix/Command/_wget =================================================================== RCS file: /cvsroot/zsh/zsh/Completion/Unix/Command/_wget,v retrieving revision 1.15 diff -u -r1.15 _wget --- Completion/Unix/Command/_wget 10 Jun 2012 03:25:40 -0000 1.15 +++ Completion/Unix/Command/_wget 21 Feb 2013 09:48:45 -0000 @@ -17,13 +17,14 @@ '(--input-file -i)'{--input-file=,-i+}'[specify input file]:file containing URLs:_files' \ '(--force-html -F)'{--force-html,-F}'[treat input file as html]' \ '(--base -B)'{--base=,-B+}'[prepend URL to relative links]:base URL:_urls' \ + '--config=[specify config file]:config file:_files' \ '(--tries -t)'{--tries=,-t+}'[set number of retries]:number of retries' \ '--retry-connrefused[retry even if connection is refused]' \ '(--output-document -O)'{--output-document=,-O+}'[specify file to write documents to]:output file:_files' \ '(--continue -c)'{--continue,-c}'[continue getting an existing file]' \ - '--content-disposition[honor the Content-Disposition header when choosing local file names]' \ '--progress=[set progress gauge type]:gauge type:->gauge' \ '(--timestamping -N)'{--timestamping,-N}'[retrieve only files newer than existing]' \ + "--no-use-server-timestamps[don't set the local file's timestamp by the one on the server]" \ '(--server-response -S)'{--server-response,-S}'[print server response]' \ "--spider[don't download anything]" \ '(--timeout -T)'{--timeout=,-T+}'[set all timeout values]:timeout (seconds)' \ @@ -40,11 +41,16 @@ '--limit-rate=[specify limit to download rate]:download rate limit' \ '--no-dns-cache[disable caching DNS lookups]' \ '--restrict-file-names=[restrict chars in file names to ones OS allows]:OS:->restrict' \ + '--ignore-case[ignore case when matching files/directories]' \ '(-4 --inet4-only -6 --inet6-only)'{-4,--inet4-only}'[connect only to IPv4 addresses]' \ '(-4 --inet4-only -6 --inet6-only)'{-6,--inet6-only}'[connect only to IPv6 addresses]' \ '--prefer-family[connect first to addresses of specified family]:address family:(IPv6 IPv4 none)' \ '(--http-user --ftp-user)--user[set both ftp and http user]:user' \ '(--http-password --ftp-password)--password[set both ftp and http password]:password' \ + '--no-iri[turn off IRI support]' \ + '--local-encoding=[specify local encoding for IRIs]:encoding' \ + '--remote-encoding=[specify default remote encoding]:encoding' \ + '--unlink[remove file before clobber]' \ '(--force-directories -x)'{--force-directories,-x}'[force creation of directories]' \ '--protocol-directories[use protocol name in directories]' \ '(--directory-prefix -P)'{--directory-prefix=,-P+}'[specify prefix to save files to]:prefix:_files -/' \ @@ -52,7 +58,8 @@ '(--user)--http-user=:user' \ '(--password)--http-password=:password' \ '--no-cache[disallow server-cached data]' \ - '(--html-extension -E)'{--html-extension,-E}'[save all HTML documents with a .html extension]' \ + '--default-page=[specify default page name, normally index.html]' \ + '(--adjust-extension -E)'{--adjust-extension,-E}'[save all HTML/CSS documents with proper extensions]' \ "--ignore-length[ignore \`Content-Length' header field]" \ '*--header=:string' \ '--proxy-user=:user' \ @@ -61,12 +68,14 @@ '--save-headers[save http headers]' \ '(--user-agent -U)'{--user-agent=,-U+}'[specify user agent to identify as]:user-agent' \ '--no-http-keep-alive[disable HTTP keep-alive]' \ - '--no-cookies=[turn cookies off]' \ + '--no-cookies[turn cookies off]' \ '--load-cookies=[specify file to load cookies from]:cookie file:_files' \ '--save-cookies=[specify file to save cookies to]:cookie file:_files' \ '--keep-session-cookies[load and save session cookies]' \ '--post-data=[use the POST method with specified data]:data to send' \ '--post-file=[use the POST method; sending contents of a file]:file:_files' \ + '--content-disposition[honor the Content-Disposition header when choosing local file names]' \ + "--auth-no-challenge[send basic HTTP authentication without first waiting for server's challenge]" \ '--secure-protocol=[choose secure protocol]:protocol:(SSLv2 SSLv3 TLSv1)' \ "--no-check-certificate=[don't check the server certificate]" \ '--certificate=[specify client certificate]:client certificate file:_files' \ @@ -89,7 +98,7 @@ '--delete-after' \ '(--convert-links -k)'{--convert-links,-k}'[convert links to be relative]' \ '(--backup-converted -K)'{--backup-converted,-K}'[backup files before conversion]' \ - '(--mirror -m -r -N -l)'{--mirror,-m}'[mirror (-r -N -l inf -nr)]' \ + '(--mirror -m -r -N -l)'{--mirror,-m}'[mirror (-r -N -l inf --no-remove-listing)]' \ '(--page-requisites -p)'{--page-requisites,-p}'[get all images needed to display page]' \ '--strict-comments[turn on strict (SGML) handling of HTML comments]' \ '(--accept -A)'{--accept=,-A+}'[specify accepted extensions]:extensions' \ @@ -102,9 +111,10 @@ '(--span-hosts -H)'{--span-hosts,-H}'[span hosts]' \ '(--relative -L)'{--relative,-L}'[follow relative links only]' \ '(--include-directories -I)'{--include-directories=,-I+}'[include directories]:allowed directories' \ + '--trust-server-names' \ '(--exclude-directories -X)'{--exclude-directories=,-X+}'[exclude directories]:excluded directories' \ + '(-np --no-parent)'{-np,--no-parent}"[don't ascend to parent directory]" \ '--no-host-lookup' \ - '--no-parent' \ '--no-verbose' \ '--no-clobber' \ '--no-directories' \ Index: Completion/Unix/Command/_xmlsoft =================================================================== RCS file: /cvsroot/zsh/zsh/Completion/Unix/Command/_xmlsoft,v retrieving revision 1.11 diff -u -r1.11 _xmlsoft --- Completion/Unix/Command/_xmlsoft 6 Jun 2012 13:22:16 -0000 1.11 +++ Completion/Unix/Command/_xmlsoft 21 Feb 2013 09:48:45 -0000 @@ -66,13 +66,14 @@ '--recover[output what was parsable on broken XML documents]' \ '--huge[remove any internal arbitrary parser limits]' \ '--noent[substitute entity references by their value]' \ + '--noenc[ignore any encoding specified inside the document]' \ "(--output -o)--noout[don't output the result tree]" \ '--path[provide a set of paths for resources]:paths:_files -/' \ '--load-trace[print trace of all external entites loaded]' \ '--nonet[refuse to fetch DTDs or entities over network]' \ + '--nocompact[do not generate compact text nodes]' \ '--htmlout[output results as HTML]' \ '--nowrap[do not put HTML doc wrapper]' \ - '--nocompact[do not generate compact text nodes]' \ '--valid[validate the document in addition to std well-formed check]' \ '(--dtdvalid --relaxng --schema)--postvalid[do a posteriori validation, i.e after parsing]' \ '(--postvalid --relaxng --schema --dtdvalidfpi)--dtdvalid[do a posteriori validation against a given DTD]:DTD:_webbrowser' \ @@ -84,27 +85,28 @@ '--compress[turn on gzip compression of output]' \ '--html[use the HTML parser]' \ '--xmlout[use the XML serializer when using --html]' \ + '--nodefdtd[do not default HTML doctype]' \ '--push[use the push mode of the parser]' \ '--memory[parse from memory]' \ - '--maxmem[imits memory allocation]:bytes' \ + '--maxmem[limit memory allocation]:bytes' \ '--nowarning[do not emit warnings from parser/validator]' \ '--noblanks[drop (ignorable?) blanks spaces]' \ '--nocdata[replace cdata section with text nodes]' \ '--format[reformat/reindent the input]' \ '--encode[output in the given encoding]:encoding:(${encoding[@]})' \ '--dropdtd[remove the DOCTYPE of the input docs]' \ + "--pretty[pretty-print in a particular style]:style:((0\:don't\ pretty\ print 1\:reformat 2\:add\ whitespace))" \ '--c14n[save in W3C canonical format]' \ '--c14n11[save in W3C canonical format v1.1 (with comments)]' \ '--exc-c14n[save in W3C exclusive canonical format]' \ '--nsclean[remove redundant namespace declarations]' \ - '--testIO[test user I/O support]' \ '(--nocatalogs)--catalogs[use SGML catalogs]' \ '(--catalogs)--nocatalogs[deactivate all catalogs]' \ '--auto[generate a small doc on the fly]' \ '(--noxincludenode)--xinclude[do XInclude processing]' \ '(--xinclude)--noxincludenode[do XInclude processing but do not generate XInclude nodes]' \ - '--loaddtd[fetch external DTD]' \ '--nofixup-base-uris[do not fixup xml:base uris]' \ + '--loaddtd[fetch external DTD]' \ '--dtdattr[loaddtd + populate the tree with inherited attributes]' \ '--stream[use the streaming interface to process very large files]' \ '--walker[create a reader and walk though the resulting doc]' \ @@ -116,7 +118,7 @@ '--sax1[use the old SAX1 interfaces for processing]' \ '--sax[do not build a tree but work just at the SAX level]' \ '--oldxml10[use XML-1.0 parsing rules before the 5th edition]' \ - '--xpath[evaluate the XPath expression, inply --noout]:XPath expression:' \ + '(--noout)--xpath[evaluate the XPath expression, implies --noout]:XPath expression' \ '*:XML file:_webbrowser' && return ;; *XML_CATALOG_FILES*) @@ -125,7 +127,7 @@ _urls return fi - + compset -S ':*' _alternative \ 'files:catalog file:_files' \ @@ -134,5 +136,3 @@ esac return 1 - - Index: Completion/Zsh/Command/_fc =================================================================== RCS file: /cvsroot/zsh/zsh/Completion/Zsh/Command/_fc,v retrieving revision 1.2 diff -u -r1.2 _fc --- Completion/Zsh/Command/_fc 11 Apr 2001 21:47:18 -0000 1.2 +++ Completion/Zsh/Command/_fc 21 Feb 2013 09:48:45 -0000 @@ -3,17 +3,21 @@ local fc_common fc_hist fc_r fc_common=( - '(-A -R -W -I)-r[reverse order of the commands]' - '(-A -R -W -I -e)-n[suppress line numbers]' - '(-A -R -W -I)*::commands:_command_names -e' ) + '(-A -R -W -I -p -P)-r[reverse order of the commands]' + '(-A -R -W -I -e -p -P)-n[suppress line numbers]' + '(-A -R -W -I -p -P)*::commands:_command_names -e' ) fc_hist=( - '(-A -R -W -I)-m[treat first argument as a pattern]' - '(-A -R -W -I -e -f -E -i)-d[print time-stamps]' - '(-A -R -W -I -e -d -E -i)-f[mm/dd/yyyy format time-stamps]' - '(-A -R -W -I -e -d -f -i)-E[dd.mm.yyyy format time-stamps]' - '(-A -R -W -I -e -d -f -E)-i[yyyy-mm-dd format time-stamps]' - '(-A -R -W -I -e)-D[print elapsed times]' ) + '(-A -R -W -I -p -p)-m[treat first argument as a pattern]' + '(-A -R -W -I -e -f -E -i -t -p -P)-d[print time-stamps]' + '(-A -R -W -I -e -d -E -i -t -p -P)-f[mm/dd/yyyy format time-stamps]' + '(-A -R -W -I -e -d -f -i -t -p -P)-E[dd.mm.yyyy format time-stamps]' + '(-A -R -W -I -e -d -f -E -t -p -P)-i[yyyy-mm-dd format time-stamps]' + '(-A -R -W -I -e -d -f -E -i -p -P)-t[print time-stamps in specified format]:date format' + '(-A -R -W -I -e -p -P)-D[print elapsed times]' + '(- *)-p[push current history to stack]:history file:_files:history size: :saved history size' + '(- *)-P[pop history from stack]' +) fc_r='(-A -R -W -I -e)-l[list resulting commands on stdout]' @@ -26,11 +30,11 @@ ;; *) _arguments -s -S \ - '(-A -R -W -I -l -n -d -f -E -i -D)-e[specify editor to invoke]:editor to invoke:_command_names -e' \ - '(-l -m -e -r -n -d -f -E -i -D -A -W *)-R[read history from file]:history file:_files' \ - '(-l -m -e -r -n -d -f -E -i -D -R -W *)-A[append history to file]:history file:_files' \ - '(-l -m -e -r -n -d -f -E -i -D -R -A *)-W[write history to file]:history file:_files' \ - '(-l -m -e -r -n -d -f -E -i -D -A -W *)-I[read/write new events only]:history file:_files' \ + '(-A -R -W -I -l -n -d -f -E -i -D -p -P)-e[specify editor to invoke]:editor to invoke:_command_names -e' \ + '(-l -m -e -r -n -d -f -E -i -D -A -W -p -P *)-R[read history from file]:history file:_files' \ + '(-l -m -e -r -n -d -f -E -i -D -R -W -p -P *)-A[append history to file]:history file:_files' \ + '(-l -m -e -r -n -d -f -E -i -D -R -A -p -P *)-W[write history to file]:history file:_files' \ + '(-l -m -e -r -n -d -f -E -i -D -A -W -p -P *)-I[read/write new events only]:history file:_files' \ "$fc_common[@]" "$fc_hist[@]" "$fc_r" && return 0 ;; esac