On Mon, 3 Aug 2009 12:17:51 -0400
Frank Peters <[email protected]> wrote:


>  These lines encapsulate the problem with
> the eselect code.
> 
> 
> #! /bin/bash
> function-one()
> {
> echo "FOOBAR"
> }
> function-one
> 
> 
> This code fails on my system.  In fact, I booted into my old system,
> a non-gentoo system, and the code also failed.  However, after booting
> into a Linux rescue disk, that runs from a CD and ramdisk, the code does
> not fail.  (All bash versions were 4.x.)
> 
>

I am responding to my own message.

The code fails on some systems and succeeds on other systems.  Why?

The answer may not be important.  The code seems to be an example
of poor practice.  Check out the second entry at this link:

http://tldp.org/LDP/abs/html/gotchas.html

If the above code is re-written to remove the hyphens and replace
them with underscores, it will not fail on any system.

Thus, the eselect developers should re-write their variables using
underscores and the problem will disappear for everyone.

Frank Peters

Reply via email to