Revision e0f470ac autotools/build-bash-completion

b/autotools/build-bash-completion
99 99
  sw.IncIndent()
100 100
  try:
101 101
    # FIXME: this is really going into the internals of the job queue
102
    sw.Write(("local jlist=$( shopt -s nullglob &&"
103
              " cd %s 2>/dev/null && echo job-* || : )"),
102
    sw.Write(("local jlist=($( shopt -s nullglob &&"
103
              " cd %s 2>/dev/null && echo job-* || : ))"),
104 104
             utils.ShellQuote(constants.QUEUE_DIR))
105
    sw.Write('echo "${jlist//job-/}"')
105
    sw.Write('echo "${jlist[@]/job-/}"')
106 106
  finally:
107 107
    sw.DecIndent()
108 108
  sw.Write("}")

Also available in: Unified diff