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

RE: Silly questions about _arguments & Co (and probably bugs)



>
> (1) Did you really apply patch-2.5.4-akr-19990902.patch?
>

Ah ... I understood it so, that I need this option to apply your patch.

Yes I applied it, and installed patch and still have the same problem. E.g.

bor@itsrm2:/tools/src/patch-2.5.4%> patch --TAB
--backup-if-mismatch      --help                    --quoting-style
--binary                  --no-backup-if-mismatch   --verbose
--dry-run                 --posix

As you see, most of options are not printed. This is with your patch for patch
:-)

Seems, that sources are getting out of sync somehow. Here is my version of
_patch (without the last -p correction):

bor@itsrm2:/tools/src/patch-2.5.4%> which _patch
_patch () {
        _arguments -s '(--strip)-p+:number:(0)' '(--fuzz)-F+:lines:'
'(--context)-c' '(--ed)-e' '(--force)-f' '(--batch)-t' '(--ignore-whitespace)-l'
'(--normal)-n' '(--forward)-N' '(--reverse)-R' '(--silent --quiet)-s'
'(--skip)-S' '(--unified)-u' '(--version)-v' -{E,Z,T} '-i+:patch file:_files'
'(--output)-o+:output file:_files' '(--reject-file)-r+:reject file:_files'
'(--ifdef)-D+:name:' '(--version-control)-V+:version control style:(simple
numbered existing)' '(--prefix)-B+:backup path prefix:' '(--suffix)-b:backup
extension:' '-Y+:backup basename prefix:_files' '-z+:backup file suffix:(.bak)'
'-g+:NUM:' '(--directory)-d+:chdir to:_files -/' ':original file:_files' ':patch
file:_files' -- '*=NUM*:number:(0)' '*=LINES*:lines:' '*=PATCHFILE*:patch
file:_files' '*=FILE*:file:_files' '*=NAME*:name:' '*=WORD*:quoting
style:(literal shell shell-always c escape)' '*=STYLE*:version control
style:(simple numbered existing)' '*=SUFFIX*:backup file suffix:(.bak)'
'*=DIR*:chdir to:_files -/'
}

And just to be sure

bor@itsrm2:/tools/src/patch-2.5.4%> sum /tools/share/zsh/functions/_arguments
21710 49 /tools/share/zsh/functions/_arguments
bor@itsrm2:/tools/src/zsh-3.1.6-pws-3%> ll /tools/share/zsh/functions/_arguments
-rw-r--r--   1 root     other      24783 Sep  9 16:18
/tools/share/zsh/functions/_arguments





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