Re: [lfs-support] vi for chapter 6

2012-10-06 Thread Richard Melville
> > If you do cat << EOF > > Then any variables or commands in backticks are evaluated > > If you do cat << "EOF" > > Then variables or commands in backticks are not evaluated. > > Example: > > cat > test << EOF > TEST=$PWD > EOF > > cat > test "EOF" > TEST=$PWD > EOF > > Sincerely, > > William Har

Re: [lfs-support] vi for chapter 6

2012-10-05 Thread Scott
On Fri, Oct 05, 2012 at 03:21:42PM +0100, Ken Moffat wrote: > On Fri, Oct 05, 2012 at 06:50:57AM -0600, Scott wrote: > > On Fri, Oct 05, 2012 at 05:49:27AM -0500, William Harrington wrote: > > > > > > If you do cat << EOF > > > > > > Then any variables or commands in backticks are evaluated > > >

Re: [lfs-support] vi for chapter 6

2012-10-05 Thread Ken Moffat
On Fri, Oct 05, 2012 at 06:50:57AM -0600, Scott wrote: > On Fri, Oct 05, 2012 at 05:49:27AM -0500, William Harrington wrote: > > > > If you do cat << EOF > > > > Then any variables or commands in backticks are evaluated > > > > If you do cat << "EOF" > > > > Then variables or commands in backti

Re: [lfs-support] vi for chapter 6

2012-10-05 Thread Scott
On Fri, Oct 05, 2012 at 05:49:27AM -0500, William Harrington wrote: > > If you do cat << EOF > > Then any variables or commands in backticks are evaluated > > If you do cat << "EOF" > > Then variables or commands in backticks are not evaluated. > > Example: > > cat > test << EOF > TEST=$PWD >

Re: [lfs-support] vi for chapter 6

2012-10-05 Thread William Harrington
On Oct 5, 2012, at 4:09 AM, Richard Melville wrote: > > A little off-topic but I've pondered this for a long time: in the > LFS book why is "EOF" always in quotes; I've found EOF without > quotes to work just fine. > > Richard > If you do cat << EOF Then any variables or commands in backtic

Re: [lfs-support] vi for chapter 6

2012-10-05 Thread Richard Melville
> > Or just create your scripts with cat > blah << "EOF" > > Then if you have errors use sed or perl to fix them! > > Sincerely, > > William Harrington > A little off-topic but I've pondered this for a long time: in the LFS book why is "EOF" always in quotes; I've found EOF without quotes to work

Re: [lfs-support] vi for chapter 6

2012-10-04 Thread Theodore Heise
On Thu, 4 Oct 2012, William Harrington wrote: > On Oct 3, 2012, at 3:56 PM, Garrett Gaston wrote: > >> Last time I did the LFS project I had to write all my scripts for >> chapter 6 from another shell from the host system. > > vi is usually killer for a temp editor, but it works great even > wi

Re: [lfs-support] vi for chapter 6

2012-10-04 Thread William Harrington
On Oct 3, 2012, at 3:56 PM, Garrett Gaston wrote: Last time I did the LFS project I had to write all my scripts for chapter 6 from another shell from the host system. vi is usually killer for a temp editor, but it works great even with features tiny. Check out some other editors that wou

Re: [lfs-support] vi for chapter 6

2012-10-03 Thread Bruce Dubbs
Ken Moffat wrote: > Of course, if your desktop isn't going to let you put 4 separate > terms on the same desktop (e.g. - no, I'll not name an environment > here) then other ways may be easier. It's just a technique, but I like to use konsole. It works great in any window manager, twm, xfce, e

Re: [lfs-support] vi for chapter 6

2012-10-03 Thread Ken Moffat
On Wed, Oct 03, 2012 at 04:42:18PM -0500, Bruce Dubbs wrote: > Garrett Gaston wrote: > > > > Last time I did the LFS project I had to write all my scripts for > > chapter 6 from another shell from the host system. This time around > > I'd like to go ahead and be able t write my chapter 6 scripts fr

Re: [lfs-support] vi for chapter 6

2012-10-03 Thread Bruce Dubbs
Garrett Gaston wrote: > > Last time I did the LFS project I had to write all my scripts for > chapter 6 from another shell from the host system. This time around > I'd like to go ahead and be able t write my chapter 6 scripts from > within the chroot environment. I'M currently in chapter 5, should

[lfs-support] vi for chapter 6

2012-10-03 Thread Garrett Gaston
Last time I did the LFS project I had to write all my scripts for chapter 6 from another shell from the host system. This time around I'd like to go ahead and be able t write my chapter 6 scripts from within the chroot environment. I'M currently in chapter 5, should I be installing vi now or wh