Rainer Peter Feller wrote:
> Not that I am the one to decide ...
> but what is easier to "read"
> sed  s%"`which bash`"%"'echo '/tools/bin/bash'`"% -i /somescript.sh
> or
> sed  s%"$(which bash)"%$(echo '/tools/bin/bash')"% -i /somescript.sh
> 
> if you read a book?

Wow.  I don't think either is very easy.  :)
And I think your first example should be:
  sed  s%"`which bash`"%"`echo '/tools/bin/bash'`"% -i /somescript.sh
                         ^

> you could also make a statement at the beginning of the book that this
> is for bash compatible shells only and that you can substitude any
> $(...) construct with `...`

Well almost any.  As the discussion shows, there are some subtle
differences when the construct uses backslashes.

  -- Bruce

-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to