Numeric User Gone Bad?

Chuck Hallenbeck chuckh at ftml.net
Sun Mar 1 18:54:49 EST 2009


Steve,

On my squeeze system, talkwith still works, and your test script gives
me this:

Numeric user-id = 0
Character user-id = root

So I wonder what's going on here?

Chuck


On Sun, Mar 01, 2009 at 03:23:51PM -0700, Steve Holmes wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: RIPEMD160
> 
> I noticed something lately, like this morning where the numeric
> user-id ($UID) doesn't work inside of scripts anymore.  Has anyone
> else noticed this? I'm running Debian Squeeze so I have the latest
> package of espeak and so on.  I first noticed the problem in both
> talkwith and speakupconf shell scripts.  If I echo $UID from a live
> shell, I hear the numeric value as I would expect.  my normal account
> is 1000 and when I echo it from root I hear 0.  But when I execute
> this command in a shell script, the $UID field always comes up as an
> empty string or null so the fore mentioned shell scripts error out.
> 
> Hear's a sample test script to try this on.
> #!/bin/sh
> # Test user id values
> echo Numeric user-id = $UID
> echo Character user-id = $USER
> 
> When I run this script, the second echo command works beautifully but
> the first one puts out the string but the value of $UID is apparently
> empty because it is omitted.
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.9 (GNU/Linux)
> 
> iEYEAREDAAYFAkmrCvcACgkQWSjv55S0LfFqIQCeJaozeNd/Le2sCx+1rt8ySvCp
> fbsAn24t0OIPonCOo9lS1GF4EzH+VC+k
> =5Xlv
> -----END PGP SIGNATURE-----
> _______________________________________________
> Speakup mailing list
> Speakup at braille.uwo.ca
> http://speech.braille.uwo.ca/mailman/listinfo/speakup

-- 
The Moon is Waxing Crescent (25% of Full)

                  My web site: www.hallenbeck.ftml.net
                      See also: www.wedit2.ml1.net
                                --------
Please help keep the world clean: others may wish to use it.



More information about the Speakup mailing list