hi,

I've not been able to post for a while (verifying sender didn't like me), so I've got a few things stored up

I think it was eric that said the only place here docs are used in plan9 default is in /sys/lib/newuser and there whoever wrote it went through some shenanigans to get $ in the output (though this is snipped):

x='$'
cat > lib/profile <<!
bind -a $x^home/bin/rc /bin
!

However, what that person seems not to know is that they could have done $$ to 
escape the $ :

cat > lib/profile <<!

bind -a $$home/bin/rc /bin
!

I like here documents, I think they look better than multi-line echoes though 
it is annoying they can't be used in fn definitions.

Matt










Reply via email to