installing binutils

Daniel Díaz al590349 at mail.mty.itesm.mx
Sat Jan 10 07:12:32 PST 2004


On Sat, 2004-01-10 at 09:02, Allard Welter wrote:
> On Saturday 10 January 2004 14:56, Trapp wrote:
> > Hi
> > I'm trying to install binutils but when I do
> > configure \ --prefix=/tools --disable-nls
> > It gives me the error:   configure:  warning:  --prefix=/tools:  invalid
> > host type
> > Any idea what the problem is?
> It is because of the way you are entering the command. the \ means continue on 
> the next line. configure is now assuming --prefix=/tools is something besides 
> an option flag.

Actually, it's escaping the next character.

Since "\ " means "put there an empty space, you bash from hell!", the
result would be something like this:

[ddiaz at akva ~/bin]$ ./configuro \ --prefix=/tools --disable-nls
[ --prefix=/tools]
[--disable-nls]

And without the escape character:
[ddiaz at akva ~/bin]$ ./configuro  --prefix=/tools --disable-nls
[--prefix=/tools]
[--disable-nls]


This is a little proof of concept:
-- ./configuro --
#!/bin/bash
echo "[$1]
[$2]"
-----------------


Best regards,

Daniel Díaz
yosoy at danieldiaz.org





More information about the lfs-support mailing list