Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Compatibility issue in the _django completion
- X-seq: zsh-workers 30960
- From: Alexey Bezhan <al@xxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Compatibility issue in the _django completion
- Date: Fri, 11 Jan 2013 23:14:39 +0400
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
Hi,
There's a problem with the current _django completion function under Mac OS X: a call to "awk -vdrop=1" at line 59 results in the "awk: invalid -v option" error. Adding a space after "-v" fixes the problem and seems to work both in mawk in Ubuntu and awk in OS X (awk version 20070501).
--- i/Completion/Unix/Command/_django
+++ w/Completion/Unix/Command/_django
@@ -59,7 +59,7 @@ case $state in
)
for cmd in $(./manage.py --help 2>&1 >/dev/null | \
- awk -vdrop=1 '{ if (!drop) print substr($0, 3) } /^Available subcommands/ { drop=0 }')
+ awk -v drop=1 '{ if (!drop) print substr($0, 3) } /^Available subcommands/ { drop=0 }')
do
if ! echo $subcommands | grep -qs "${cmd}:"
then
--
Alexey Bezhan
Messages sorted by:
Reverse Date,
Date,
Thread,
Author