LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   What is the LFS system environment used for (https://www.linuxquestions.org/questions/linux-newbie-8/what-is-the-lfs-system-environment-used-for-4175512792/)

Mikey555 07-30-2014 09:41 PM

What is the LFS system environment used for
 
Hello

Sometimes i see LFS=<value> in bash scripts. I want to know what it is and when to use it. I did a google search on LFS system environment but I get many linux from scratch results. Thx

notKlaatu 07-30-2014 10:11 PM

Without seeing example scripts and knowing the context, LFS=<value> is simply a variable. I do not see, at least from your description, that it is a 'system environment' (I guess you mean an exported environment variable?).

If you are seeing it in shell scripts, it may be that those shell scripts are being borrowed from LinuxFromScratch. One does tend to see a lot of cross-pollination in the Free Software world, so I wouldn't be surprised.

Maybe an example would help nail it down.

Habitual 07-31-2014 12:40 PM

LFS=/mnt/lfs

keefaz 07-31-2014 12:49 PM

Maybe OP means IFS ?
Code:

IFS    The  Internal  Field  Separator  that is used for word splitting
              after expansion and to split lines  into  words  with  the  read
              builtin  command.  The  default  value  is  ``<space><tab><new-
              line>''.


Mikey555 07-31-2014 01:17 PM

Quote:

Originally Posted by keefaz (Post 5212631)
Maybe OP means IFS ?
Code:

IFS    The  Internal  Field  Separator  that is used for word splitting
              after expansion and to split lines  into  words  with  the  read
              builtin  command.  The  default  value  is  ``<space><tab><new-
              line>''.



YES, this is what I meant. I thought it was LFS, my mistake. Thanks for the correction.

jefro 07-31-2014 09:25 PM

Good catch keefaz.


All times are GMT -5. The time now is 08:12 AM.