r7388 - in branches/udev_update/BOOK: chapter01 chapter06

Matthew Burgess matthew at linuxfromscratch.org
Mon Feb 20 13:14:58 PST 2006

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:
> macana at sandbox:~$ cat >> test << EOF
>>RUN+="/sbin/modprobe $modalias"

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"



More information about the lfs-book mailing list