akhiezer wrote:
Date: Sat, 16 Aug 2014 14:38:19 -0500
From: Bruce Dubbs <[email protected]>
To: BLFS Development List <[email protected]>
Subject: Re: [blfs-dev] postlfs/profile.html : '/etc/profile' : add 'unset
  script' ?

akhiezer wrote:

Hi,


On svn blfs page:

    http://www.linuxfromscratch.org/blfs/view/svn/postlfs/profile.html

, in section '/etc/profile' there is at the end of the code:
--
for script in /etc/profile.d/*.sh ; do
          if [ -r $script ] ; then
                  . $script
          fi
done
--
But no ~usual-style 'unset script' follows it. Any particular reason for
that: or should there be such a line added in the ~usual way.

After booting and from the command line, run `set|grep script`.  Do you
see anything?

For another clue, see man bash and look for the builtin command 'export'.



Lol, you've at times an unerring capability of entirely missing the point
  ;)  . You've missed the most obvious scope of the variable. But, 's ok -

You have an unerring capability of not making your point clear. :) Is it you want to make the structure the same as other places in the book or that you think that the variable hangs around after running the script?

We don't add instructions that are not needed. It might be an interesting question to ask a student to research why it isn't needed.

  -- Bruce
--
http://lists.linuxfromscratch.org/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to