From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14972 invoked by alias); 11 Jan 2013 19:43:42 -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: 30960 Received: (qmail 8148 invoked from network); 11 Jan 2013 19:43:29 -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=-2.6 required=5.0 tests=BAYES_00,HTML_MESSAGE, RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 Received-SPF: none (ns1.primenet.com.au: domain at fueledbylemons.com does not designate permitted sender hosts) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:date:from:to:message-id:subject:x-mailer:mime-version :content-type:x-gm-message-state; bh=hdNskfN5mch1CnEPvL5xP4PUbhshuFczs4D9uCiPQ4Y=; b=NLw0FGBperQtmt0/VIYuUDEQXvdSvazSP/VtnimozhzarRZaWTYaS/ci1OVYwWdO25 o0I6Mz3TbrJovVrwG7nUOiAJbYUZP/gblbr958e/7pUN4usoJrpUuSf2JtnOucGh+dDD e5xP7LxMu6XO2k+vPA8OPevTAGVJkWc4KMm+btDqrXUSrOa0eoQTlg1TZXLDD0MVIR8D Fj89HqPSskgav9wo+6LEEf52VuidWhAhJv6tHjpGhulHh2rnraQQSsw+HdcXBW3wbE8c WxVJ7bltcU7L+hu6Jw8u/tQKSbpECahT+EPZhDSt9wlEn97m105GKvfIQIJnMPPiSuYZ xROQ== X-Received: by 10.152.125.136 with SMTP id mq8mr74001722lab.41.1357931681091; Fri, 11 Jan 2013 11:14:41 -0800 (PST) Date: Fri, 11 Jan 2013 23:14:39 +0400 From: Alexey Bezhan To: zsh-workers@zsh.org Message-ID: <8DAABB32CF84427596279B599BB929DB@fueledbylemons.com> Subject: Compatibility issue in the _django completion X-Mailer: sparrow 1.6.4 (build 1178) MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="50f0649f_2443a858_98" X-Gm-Message-State: ALoCoQk9pg7rGXifIr5GVU62uJzZ8U4dVzYazyVYTBR3t64X7CiIcZr912gvdvJlKk3S8JqtQSS/ --50f0649f_2443a858_98 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline 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 --50f0649f_2443a858_98--