Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
gnu cut completion as wrong as it can be, patch
- X-seq: zsh-workers 24525
- From: "Mikael Magnusson" <mikachu@xxxxxxxxx>
- To: zsh-workers <zsh-workers@xxxxxxxxxx>
- Subject: gnu cut completion as wrong as it can be, patch
- Date: Sun, 3 Feb 2008 07:48:03 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; bh=r4+87HGKt7/lrElMPdbZutzJy/d3hy7obyKJAGAKA3s=; b=RxRkH4kuLj6nYBlzcqnqp7jvCCwaSUkGuRDcaDTfW/ezagyqNnyV0Rth3zxZkE67lWxpCS7G5wZtb1d/tIvqXZgX2+5YkVSe9tn1i/u0emTC2DHxlY0zo21s0ClXg5rzpZJmZrN38EUdnPADywHwKhpQxuOe3l/jrIj7K/rWX7Y=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=iyJgYQqe6Rw0I+CXwpm6qaijj7X2xMSaJM+c99dT9M5Zg3xpkEe2qDCge3mKGFMqioyKrqbjU04RtIRxof6XF6TjdBd39gxABeRzsEimtuxgXGT5c6gJJ8zJvP5T9VFLf3pABueXCzOr3mkBRtKXC2T0xYvJ0AYpkURpPHT/hCU=
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
Add + qualifiers to short options that take arguments. Add said
arguments too. Remove a = from an option that does not take an
argument. Complete files (hello?).
diff --git a/Completion/Unix/Command/_cut b/Completion/Unix/Command/_cut
index 7d7526d..b17cf7c 100644
--- a/Completion/Unix/Command/_cut
+++ b/Completion/Unix/Command/_cut
@@ -35,16 +35,17 @@ if _pick_variant gnu="Free Soft" unix --version; then
esac
_arguments \
- '(--bytes -b)'{--bytes=,-b}'['$_cut_args[bytes]']' \
- '(--characters -c)'{--characters=,-c}'['$_cut_args[characters]']' \
- '(--delimiter -d)'{--delimiter=,-d}'['$_cut_args[delimiter]']' \
- '(--fields -f)'{--fields=,-f}'['$_cut_args[fields]']' \
+ '(--bytes -b+)'{--bytes=,-b}'['$_cut_args[bytes]']:list' \
+ '(--characters
-c+)'{--characters=,-c}'['$_cut_args[characters]']:list' \
+ '(--delimiter
-d+)'{--delimiter=,-d}'['$_cut_args[delimiter]']:delimeter' \
+ '(--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]']' \
+ '(--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]']'
+ '--version['$_cut_args[version]']' \
+ '*:file:_files'
else
_arguments \
'-b[list specifies byte positions]:list:' \
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author