public inbox for gentoo-amd64@lists.gentoo.org
 help / color / mirror / Atom feed
From: Frank Peters <frank.peters@comcast.net>
To: gentoo-amd64@lists.gentoo.org
Subject: [gentoo-amd64] Eselect Syntax Bug?
Date: Mon, 3 Aug 2009 10:04:25 -0400	[thread overview]
Message-ID: <20090803100425.e83801b8.frank.peters@comcast.net> (raw)

I had first noticed this problem some time ago.

Running eselect, a bash script, always fails with the errors:

`ec_do_list-options': not a valid identifier
`ec_do_list-modules': not a valid identifier

This is not surprising.  In bash, any variable or function should not
contain a hyphen because it could be mistaken for the subtraction
operator.  Indeed, replacing these variables with

ec_do_list_options
ec_do_list_modules

completely fixes the problem and allows eselect to do its job normally.

But why has not such an obvious mistake been observed before?

Has anyone else executed an unmodified eselect without error?

Is there more to this issue than meets the eye?

I can't file a bug report on this until I get some confirmation.

Frank Peters



             reply	other threads:[~2009-08-03 14:04 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-03 14:04 Frank Peters [this message]
2009-08-03 14:27 ` [gentoo-amd64] Eselect Syntax Bug? Josh Sled
2009-08-03 16:17   ` Frank Peters
2009-08-03 16:37     ` Frank Peters
2009-08-03 16:46     ` Josh Sled

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20090803100425.e83801b8.frank.peters@comcast.net \
    --to=frank.peters@comcast.net \
    --cc=gentoo-amd64@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox