I’m not sure if the \ at the end of the line would work. Also this could work: (sorry my typo in the thkin)
pete@gentoo ~ $ command=$(cat << EOF
> I thkin
> this
> could work for the long
> commands
> EOF
> )
pete@gentoo ~ $ command=@(echo $command)
pete@gentoo ~ $ echo $command
@(echo I thkin this could work for the long commands)
pete@gentoo ~ $
edit: yes, it should work even without the command=@(echo $command). echo $command shows all the lines right without the @()
That is a great idea.
I think what it needs to attract people is a less challenging topic and more detail. Gentoo frightens people… Lets find a way of being adventurous with Mint or Debian.
LFS has vi and the bash-5.2# prompt, I also have links and lynx installed, but until I have the make-ca package installed both are difficult to use.
The only other viable options is mount LFS with Gentoo and use a virtual kernel. I could use ssh and login with Putty with Windows, but that would be LFS root and having to set a user and pw!!!
I’m not tried anything with the LFS yet so I don’t know how to input anything long there. I just thought that you’re on Gentoo and using terminal emulator to chroot to LFS but after reading the LFS book, you’re going to chroot on chapter 7.
So forget my earlier reply! I’ll try to get started building the LFS soon, but at this point I don’t know how to help you with this issue.
certificate’s
OK, so I reboot into Gentoo mount the LFS virtual terminal and copy and paste the
file form the BLFS book into vi and hit save!!!
The BLFS book uses the the " cat > /etc/profile << "EOF " command.
It doesnt all have to fit. In a console what you type just scrolls off the top, but that does not matter… it deals with one line at a time.
Horizontal wrapping never seemed to bother me when I used consoles. On the screen it wraps to the next line, but in the file it will be one line because the wrap does not generate an LF.
I dont get the problem
OK, what you are saying is to go ahead and save the file and check with " cat /etc/profile "!!
I made this mistake, at my last attempt at LFS, my profile has to be without mistakes!!
So, am I better off, even if it takes longer to just us cat and my bash prompt or use vi?
Not sure. ( I personally always use vi, but that is just habit)
Why not save it to a file of another name
Then check it is right
And if you are happy, copy it to .profile
I see why you are worried… messing up .profile will stymie your login!!
You can always mount the filesystem from some other Linux and edit any mistake like that.
@nevj
I used vi to do a manual install of the file, I am going to boot Gentoo and mount the LFS virtual terminal and check my work!! When I checked the file while in LFS, it was showing all pink!!!