On Tue, Jul 29, 2003 at 02:51:40AM -0500, Lucius, Leland wrote:

> Will this work for ya John?  Let me know if ya have questions.
>
> I must confess.  I did this just for you.  I never intended to use it.  But,
> doggone it, I really like it.  Heck, if I start to get used to it, I might
> even modify it to work with VM as well and just do all my editing over on
> Linux.

I'm not sure it will work. One gotcha:

# PRE="cut -b 1-72 | sed -e s/\ \*\$//"

If this were't remmed out, you probably have had a non-functioning
script.

Consider:

  cmd='ls |head'
  $cmd

The result will be:

  ls: |head: No such file or directory

The problem is bash's expantion order. It will expand variables only
after it has seperated the command-line to "subcommands".

--
Tzafrir Cohen                       +---------------------------+
http://www.technion.ac.il/~tzafrir/ |vim is a mutt's best friend|
mailto:[EMAIL PROTECTED]       +---------------------------+

Reply via email to