Revision 8adfb141

b/Makefile.am
351 351
	$(all_python_code)
352 352

  
353 353
check_python_code = \
354
	autotools/build-bash-completion \
354 355
	$(all_python_code)
355 356

  
356 357
devel/upload: devel/upload.in $(REPLACE_VARS_SED)
b/autotools/build-bash-completion
465 465

  
466 466
        if arg.min == 1 and arg.max == 1:
467 467
          cmpcode = """"$arg_idx" == %d""" % (last_arg_end)
468
        elif arg.max is None:
469
          cmpcode = """"$arg_idx" -ge %d""" % (last_arg_end)
468 470
        elif arg.min <= arg.max:
469 471
          cmpcode = (""""$arg_idx" -ge %d && "$arg_idx" -lt %d""" %
470 472
                     (last_arg_end, last_arg_end + arg.max))
471
        elif arg.max is None:
472
          cmpcode = """"$arg_idx" -ge %d""" % (last_arg_end)
473 473
        else:
474 474
          raise Exception("Unable to generate argument position condition")
475 475

  
......
487 487
            if choices:
488 488
              sw.Write("""choices="$choices "%s""", choices)
489 489
            if compgenargs:
490
              sw.Write("compgenargs=%s", utils.ShellQuote(" ".join(compgenargs)))
490
              sw.Write("compgenargs=%s",
491
                       utils.ShellQuote(" ".join(compgenargs)))
491 492
          finally:
492 493
            sw.DecIndent()
493 494

  

Also available in: Unified diff