Fix gsu com_complete().
authorAndre Noll <maan@systemlinux.org>
Tue, 29 Nov 2011 13:02:48 +0000 (14:02 +0100)
committerAndre Noll <maan@tuebingen.mpg.de>
Fri, 29 Aug 2014 19:39:58 +0000 (21:39 +0200)
commit3a03e1053e427e8403bc9a4c2fb4686d9d179991
tree094ef78b71df3e4076c0d11305876d054aa0e22d
parentc2d03a6157867608fe2daef1c8bbfc3d727c0d72
Fix gsu com_complete().

It should work also if set -u was given. Currently this fails if
_com_complete() is called with no arguments.

Moreover, the first argument, if it is provided, should be a number
but we missed to check this.
misc/gsu/subcommand