LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-30-2014, 10:41 PM   #1
Mikey555
LQ Newbie
 
Registered: Jul 2014
Posts: 2

Rep: Reputation: Disabled
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

Last edited by Mikey555; 07-30-2014 at 10:43 PM.
 
Old 07-30-2014, 11:11 PM   #2
notKlaatu
Member
 
Registered: Sep 2010
Location: Wellington, New Zealand
Distribution: Slackware
Posts: 893

Rep: Reputation: 523Reputation: 523Reputation: 523Reputation: 523Reputation: 523Reputation: 523
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.
 
Old 07-31-2014, 01:40 PM   #3
Habitual
LQ Addict
 
Registered: Jan 2011
Location: Youngstown, Ohio
Distribution: LM17.1/Xfce4.11.8
Posts: 7,158
Blog Entries: 10

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
LFS=/mnt/lfs
 
Old 07-31-2014, 01:49 PM   #4
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 5,387

Rep: Reputation: 397Reputation: 397Reputation: 397Reputation: 397
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>''.
 
1 members found this post helpful.
Old 07-31-2014, 02:17 PM   #5
Mikey555
LQ Newbie
 
Registered: Jul 2014
Posts: 2

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by keefaz View Post
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.
 
Old 07-31-2014, 10:25 PM   #6
jefro
Moderator
 
Registered: Mar 2008
Posts: 15,372

Rep: Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198
Good catch keefaz.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] LFS 7.2 Chapter 6.4 Chroot Environment Error raza.ajmi Linux From Scratch 11 12-14-2012 02:34 AM
[SOLVED] Resuming the LFS build environment after rebooting the system prakashsince92 Linux From Scratch 3 12-19-2010 01:51 PM
[SOLVED] using a chroot environment to install software in LFS jmc1987 Linux From Scratch 4 09-23-2010 01:31 PM
"LFS" System Without Development Environment? frozenQueue Linux - Distributions 1 09-15-2010 01:39 AM
Step 4.4 of LFS 6.0: Setting up the Environment dimaash Linux From Scratch 2 07-18-2005 12:18 AM


All times are GMT -5. The time now is 08:45 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration