Bug#495553: bash's failglob option makes freecol print its usage message

Vincent Fourmond fourmond at debian.org
Mon Aug 18 14:31:26 UTC 2008


  Hello again,

On Mon, Aug 18, 2008 at 4:06 PM, Vincent Fourmond <fourmond at debian.org> wrote:
> The difference is that the primary user's .bashrc includes
>  set failglob
> if /usr/games/freecol is called with no arguments, this makes
> the final line's "$@" expand to "failglob".

  For the record, set failglob is useless with bash. See:

fv at Vncent:~$ set failglob
fv at Vncent:~$ echo sdf*sdf
sdf*sdf

  You should use

shopt -s failglob

  This does not make freecol fail.

  However, $@ seems to contain the last argument to given set, for
some reason that escapes me. I'm now sure that this is a bash bug.

  Cheers,

      Vincent





More information about the Pkg-games-devel mailing list