Re: Source style regarding here-documents
On 12/27/2012 08:55 AM, Daniel Reichelt wrote:
> - -----8<--------
> while true
> do
> if $foo
> then
> cat >foo <<-EOF
> bar
> blah
> EOF
> fi
> done
> - -----8<--------
...versus posix-only:
---snip---
while true
do
if $foo
then
cat > foo << EOF
bar
blah
EOF
fi
done
---snap---
there are no technical advantages of the non-posix one over the
posix-only one. it is only a slight cosmetical improvement. and just for
that alone i don't think makes it worth depending on bash or dash. also,
it's not that we do that in lb that often anyway.
thanks for your suggestion though.
--
Address: Daniel Baumann, Donnerbuehlweg 3, CH-3012 Bern
Email: daniel.baumann@progress-technologies.net
Internet: http://people.progress-technologies.net/~daniel.baumann/
Reply to: