Hi RaptorX

Your command has double quotes between double quotes (nested double quotes). In 
such cases the shell doesn't know where the quoted statement finishes. You need 
to use escaped double quotes for this case. Or you can use single quotes for 
outer quotes and double for inner.

Use of single quotes in outer quotes means everything (character, number or 
special character) is passed on to the command.

Thanks,
Aditya


________________________________
From: RaptorX <[email protected]>
To: LFS Support List <[email protected]>
Sent: Wednesday, 22 July, 2009 12:55:22 PM
Subject: Re: time command help

If I understood you correctly i should try:

time bash "{/foo/bar}"

the output is the same...

time bash "{CC="gcc -B/usr/bin" ../gcc-4.1.2/configure --prefix=/tools 
--with-local-prefix=/tools --disable-nls --disable-shared --disable-libssp 
--enable-languages=c && make && make install}"
bash: {CC=gcc: No such file or directory

real    0m0.003s
user    0m0.003s
sys     0m0.000s


I tried removing the brackets {}


time bash "CC="gcc -B/usr/bin" ../gcc-4.1.2/configure --prefix=/tools 
--with-local-prefix=/tools --disable-nls --disable-shared --disable-libssp 
--enable-languages=c && make && make install"
bash: CC=gcc: No such file or directory

real    0m0.002s
user    0m0.000s
sys     0m0.003s


the same... the command time works fine when i dont use long commands, i 
believe it has something to do with the spaces...
-- 
======================================================================
"The shortest way to do many things is to do only one thing at a time."



      Yahoo! recommends that you upgrade to the new and safer Internet Explorer 
8. http://downloads.yahoo.com/in/internetexplorer/

-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page

Reply via email to