LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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, 09: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 09:43 PM.
 
Old 07-30-2014, 10:11 PM   #2
notKlaatu
Senior Member
 
Registered: Sep 2010
Location: Lawrence, New Zealand
Distribution: Slackware
Posts: 1,077

Rep: Reputation: 732Reputation: 732Reputation: 732Reputation: 732Reputation: 732Reputation: 732Reputation: 732
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, 12:40 PM   #3
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
LFS=/mnt/lfs
 
Old 07-31-2014, 12:49 PM   #4
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
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, 01: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, 09:25 PM   #6
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,979

Rep: Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624
Good catch keefaz.
 
  


Reply



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 01:34 AM
[SOLVED] Resuming the LFS build environment after rebooting the system prakashsince92 Linux From Scratch 3 12-19-2010 12:51 PM
[SOLVED] using a chroot environment to install software in LFS jmc1987 Linux From Scratch 4 09-23-2010 12:31 PM
"LFS" System Without Development Environment? frozenQueue Linux - Distributions 1 09-15-2010 12:39 AM
Step 4.4 of LFS 6.0: Setting up the Environment dimaash Linux From Scratch 2 07-17-2005 11:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:28 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
Open Source Consulting | Domain Registration