[sbopkg-users] strange error depending on run directory

mc collilieux mccnews at free.fr
Mon Mar 9 23:37:30 UTC 2009


slakmagik a écrit :
>> tr: construit [[:upper:]] et/ou [[:lower:]] mal aligné
(construit should be _construction_ in french)
> 
> Je ne parle pas français (is that right?)
But it seems good :)
> but: misaligned [[:upper:]] and/or [[:lower:]] construct

to be more clear
If I have L99
KEEPLOG=$(echo "$KEEPLOG" | tr [[:lower:]] [[:upper:]])

sbopkg (with su root) run in any directory except /home/mcc, but run in
/home/mcc/test or other subdirectory

> Is KEEPLOG set in the conf file(s)
KEEPLOG=yes in /etc/sbopkg/sbopkg.conf. I have not personal conf
file, neither root.

> user may be accessing different conf files) and to what? What is the 
> literal pathname of /home/myuser and what odd files might be in it?
> Are root and user's locale settings or other possibly related values 
> different?

I have not seen any difference in locale or other env variables. I have
the same shell bash and only one version of tr.

> In any case, does changing line 99 to
> 
> KEEPLOG=$(echo "$KEEPLOG" | tr "[:lower:]" "[:upper:]")
> 
if I change L99 like
KEEPLOG=$(echo "$KEEPLOG" | tr [:lower:] [:upper:])
or
KEEPLOG=$(echo "$KEEPLOG" | tr "[:lower:]" "[:upper:]")
it's OK for root also in /home/mcc
Thanks for the idea

Finally, I can use sbopkg even if out my /home, it is not a big problem.
I wish only understand what's happening


-- 
Marie-Claude Collilieux
Bretagne


More information about the sbopkg-users mailing list