M.Canales.es wrote:
El Lunes, 20 de Febrero de 2006 08:48, Matthew Burgess escribió:
Yeah, and when I scripted it I forgot to escape the '$' in my Makefile
too! I wonder whether there's a facility in jhalfs to not expand shell
variables? If not, I think I'll raise an enhancement request :-)
It don't work from the command line for me:
[EMAIL PROTECTED]:~$ cat >> test << EOF
RUN+="/sbin/modprobe $modalias"
EOF
Yep, I always get confused about shell variable expansion in here
documents. This works though, and is slightly cleaner than the shell
escaping, IMO:
cat >> test << "EOF"
RUN+="/sbin/modprobe $modalias"
EOF
Regards,
Matt.
--
http://linuxfromscratch.org/mailman/listinfo/lfs-book
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page