bug-grub
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

backtick patch for grub-install in grub-0.5.96.1


From: Gregory Margo
Subject: backtick patch for grub-install in grub-0.5.96.1
Date: Tue, 5 Jun 2001 11:34:52 -0700
User-agent: Mutt/1.2.5i

The grub-install script splits a `` expression across two lines.
While some shells might handle that, the one I'm using,
        GNU bash, version 2.04.3(1)-release (i586-mandrake-linux-gnu)
does not seem to.

This patch just adds two backslashs, which makes the error messages
go away:


--- grub-0.5.96.1/util/grub-install.in.00       Mon Oct 16 07:42:36 2000
+++ grub-0.5.96.1/util/grub-install.in  Tue Jun  5 11:25:41 2001
@@ -76,9 +76,9 @@
     # Break the device name into the disk part and the partition part.
     case "$host_os" in
     linux*)
-       tmp_disk=`echo "$1" | sed -e 's%\([sh]d[a-z]\)[0-9]*$%\1%'
+       tmp_disk=`echo "$1" | sed -e 's%\([sh]d[a-z]\)[0-9]*$%\1%' \
                                  -e 's%/part[0-9]*$%/disc%'`
-       tmp_part=`echo "$1" | sed -e 's%.*/[sh]d[a-z]\([0-9]*\)$%\1%'
+       tmp_part=`echo "$1" | sed -e 's%.*/[sh]d[a-z]\([0-9]*\)$%\1%' \
                                  -e 's%.*/\(disc\|part\([0-9]*\)\)$%\2%'`
        ;;
     gnu*)




-- 
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Gregory H. Margo
Home: address@hidden
Work: address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]