1748169 Members
4151 Online
108758 Solutions
New Discussion юеВ

Show me the money (B#)

 
SOLVED
Go to solution
Olav Baadsvik
Esteemed Contributor

Re: Show me the money (B#)

Hi,

I think the explanation of your problem is
to be found in the default shell for user
root /sbin/sh.
I guess the pound sign is a "special symbol" and the /sbin/sh does not
have support for special symbols. This
is becuase /sbin/sh is statically linked
and does not use the shared libs in
/usr that are required for support of
national characters. This means that you will see the same problem with all of
the characters that you will normally call national characters.
The reason /sbin/sh is linked without
dependency on things in /usr is that
if not user root will not get a running shell when booting in single user mode without access to /usr.

Hope this answers your question.

Olav
Alex Glennie
Honored Contributor

Re: Show me the money (B#)

Olav,

glad you mentioned that ..... I'm aware of the limitation of /sbin/sh and NLS but it doesn't explain why when I run su then issue /usr/bin/sh it works but when I su - and run /usr/bin/sh it doesn't

Let me clarify what I'd like to know is why the above produces 2 different results .... so I guess the answers likely to be shell related.
steven Burgess_2
Honored Contributor

Re: Show me the money (B#)

Hi

I think Bill Hassell will be the man with the answer for this

Steve
take your time and think things through
Charles Slivkoff
Respected Contributor
Solution

Re: Show me the money (B#)

/sbin/sh is static linked and thus cannot be internationalized. It is limited to ASCII characters which by-definition is only 7-bit.