From: Alexey Bezhan <al@fueledbylemons.com>
To: zsh-workers@zsh.org
Subject: Compatibility issue in the _django completion
Date: Fri, 11 Jan 2013 23:14:39 +0400 [thread overview]
Message-ID: <8DAABB32CF84427596279B599BB929DB@fueledbylemons.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 758 bytes --]
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
next reply other threads:[~2013-01-11 19:43 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-11 19:14 Alexey Bezhan [this message]
2013-12-27 21:15 ` PATCH _cd: completion fails for "cd .." if $PWD/.. contains a space Alexey Bezhan
2013-12-28 8:00 ` Bart Schaefer
2013-12-30 9:23 ` PATCH _cd: completion fails for Carlo
2013-12-30 16:13 ` Carlo
2013-12-30 16:15 ` Carlo
2013-12-30 19:29 ` Bart Schaefer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8DAABB32CF84427596279B599BB929DB@fueledbylemons.com \
--to=al@fueledbylemons.com \
--cc=zsh-workers@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).