zsh-workers
 help / color / mirror / code / Atom feed
* Compatibility issue in the _django completion
@ 2013-01-11 19:14 Alexey Bezhan
  2013-12-27 21:15 ` PATCH _cd: completion fails for "cd .." if $PWD/.. contains a space Alexey Bezhan
  0 siblings, 1 reply; 7+ messages in thread
From: Alexey Bezhan @ 2013-01-11 19:14 UTC (permalink / raw)
  To: zsh-workers

[-- 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


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2013-12-30 19:30 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-01-11 19:14 Compatibility issue in the _django completion Alexey Bezhan
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

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).