public inbox for gentoo-amd64@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-amd64] Eselect Syntax Bug?
@ 2009-08-03 14:04 Frank Peters
  2009-08-03 14:27 ` Josh Sled
  0 siblings, 1 reply; 5+ messages in thread
From: Frank Peters @ 2009-08-03 14:04 UTC (permalink / raw
  To: gentoo-amd64

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



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-08-03 16:46 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-03 14:04 [gentoo-amd64] Eselect Syntax Bug? Frank Peters
2009-08-03 14:27 ` Josh Sled
2009-08-03 16:17   ` Frank Peters
2009-08-03 16:37     ` Frank Peters
2009-08-03 16:46     ` Josh Sled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox