On Wed, Aug 08, 2007 at 07:06:25PM +0200, Manon Metten wrote:
> Hi Nyizsnyik,
> 
> On 8/8/07, Nyizsnyik Ferenc <[EMAIL PROTECTED]> wrote:
> 
> Adding $HOME to /etc/profile should not work the way you want it to.
> > These settings are global, consider them as "executed by root", so in
> > this case $HOME will resolve as /root, not /home/manon as you may have
> > expected.
> 
> 
> Thanks, I didn't think of this. I just forgot to mention it, but I also
> tried adding
>  'export PATH=/home/manon/scripts:$PATH' to the end of /etc/profile, but
> that didn't work either. But for now, the problem is solved by adding it to
> ~/.bashrc.
> 

if you haven't yet, you would be well served to read man bash. It is
an excellent resource, and you'll learn bash scripting at the same
time. Pay particular attention to the startup information and what
process bash goes through during startup. You have to grok the
difference between a login shell and an interactive shell and what the
appropriateness of each one is. Then you will understand why the
different files behave the way they do. 

A

Attachment: signature.asc
Description: Digital signature

Reply via email to