Re: time command help

2009-07-22 Thread RaptorX
:D yesh... the problem was that i was typing "{ ls; }" and when using the time command you should not quote the brackets since bash will try to read them litterally... time "{ ls; }" does not work time { ls; } works fine On Wed, Jul 22, 2009 at 7:53 PM, Mike McCarty wrote: > RaptorX wrote: > >

Re: time command help

2009-07-22 Thread Mike McCarty
RaptorX wrote: > while re-reading Bruce's comment i just tried: > > time { ls; } > > and it worked fine... I feel dumb now... I did try it before and it didnt > work!! It should work. The syntax of the builtin is time Now may be any command, including a compound one. However, when I encount

Re: time command help

2009-07-22 Thread RaptorX
while re-reading Bruce's comment i just tried: time { ls; } and it worked fine... I feel dumb now... I did try it before and it didnt work!! any way... it is totally correct what Bruce explained maybe i misspelled and didnt notice?? Thanks for all the help guys!!! On Wed, Jul 22, 2009 at 7:18

Re: time command help

2009-07-22 Thread RaptorX
> > This stuff all gets confusing, I know, especially since bash > has incorporated even the kitchen sink into it. IMO, bash > has gotten out of hand, similar to emacs. However, that's > getting into a whole 'nother discussion, which is OT for > this echo. I do think it would be less confusing if b

Re: time command help

2009-07-22 Thread RaptorX
actually for me it *is* necessary to pass the -c option after bash...: This is BASH 3.1 - DISPLAY on :0.0 [~]$ *time bash "{ ls; }"* > bash: { ls; }: No such file or directory real0m0.002s user0m0.000s sys 0m0.001s [~]$ *time bash -c "{ ls; }"* > Azureus Downloads

Re: time command help

2009-07-22 Thread Mike McCarty
Trent Shea wrote: > On Wednesday 22 July 2009 10:32:34 Trent Shea wrote: >>> CC="gcc -B/usr/bin/" time { ls; } >> Actually, this doesn't work for me either, :) now I'm a little curious... > > I just assumed this set a variable and went on to the next command, but > obviously not. It changes the

Re: time command help

2009-07-22 Thread Bruce Dubbs
RaptorX wrote: > > so basically i had to invoke* bash* AND add the* -c* option before adding > the wraps... That's not necessary as I already explained. > which in the book is not explained... This is bash functionality. It is out of scope to explain how to use tools. However the book does poi

Re: time command help

2009-07-22 Thread RaptorX
> > No, what you are doing with the quotes is telling bash to that everything > within > the quotes is a single parameter. There is no executable > {-space-ls-space-}. > > Note that the 'time' builtin must be first, so > > CC="gcc -B/usr/bin/" time { ls; } > > is invalid. It must be: > > time { C

Re: time command help

2009-07-22 Thread Trent Shea
On Wednesday 22 July 2009 10:32:34 Trent Shea wrote: > > CC="gcc -B/usr/bin/" time { ls; } > > Actually, this doesn't work for me either, :) now I'm a little curious... I just assumed this set a variable and went on to the next command, but obviously not. Trent. -- http://linuxfromscratch.org

Re: time command help

2009-07-22 Thread RaptorX
i did try the space + semicolon later on and didnt work either... but just did time bash -c " { ls; } " and went perfectly so basically i had to invoke* bash* AND add the* -c* option before adding the wraps... which in the book is not explained... Thanks to Mike for the answer and to Bruce for

Re: time command help

2009-07-22 Thread Trent Shea
On Wednesday 22 July 2009 10:26:29 Mike McCarty wrote: > CC="gcc -B/usr/bin/" time { ls; } Actually, this doesn't work for me either, :) now I'm a little curious... -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the

Re: time command help

2009-07-22 Thread Bruce Dubbs
RaptorX wrote: > actually in this system: > Slackware 12.2 > > that returns with an error... > > *[~]$ time bash "{ ls }" > bash: { ls }: No such file or directory > > real0m0.002s > user0m0.000s > sys 0m0.002s > [~]$* > > it really seems to be with the version of bash that Slackwar

Re: time command help

2009-07-22 Thread Trent Shea
On Wednesday 22 July 2009 10:26:29 Mike McCarty wrote: > The original question related to a command like this: > > $ CC="gcc -B/usr/bin/" time { ls; } The command in the original post was still not properly formatted. It should work with the space and semi colon inserted. Trent. -- http://linu

Re: time command help

2009-07-22 Thread Mike McCarty
Trent Shea wrote: > On Wednesday 22 July 2009 07:46:58 RaptorX wrote: >> the following commands work fine: >> >> time ls >> >> time "ls" >> >> time 'ls' >> >> this one doesnt: >> >> time {ls} >> >> time { ls } >> >> >> so do we really have to enclose in brackets? > > http://tldp.org/LDP/abs/html/f

Re: time command help

2009-07-22 Thread Bruce Dubbs
RaptorX wrote: > Hi guys, > > This is my first time building LFS 6.4, im in chapter 5.4.1 at the moment > and I wanted to run the benchmark with the time command... You have to understand how bash parses the command line. It separates reserved words by whitespace and separates commands by semi-

Re: time command help

2009-07-22 Thread Mike McCarty
RaptorX wrote: > actually in this system: > Slackware 12.2 > > that returns with an error... > > *[~]$ time bash "{ ls }" > bash: { ls }: No such file or directory > > real0m0.002s > user0m0.000s > sys 0m0.002s > [~]$* > > it really seems to be with the version of bash that Slackwar

Re: time command help

2009-07-22 Thread Trent Shea
On Wednesday 22 July 2009 07:46:58 RaptorX wrote: > the following commands work fine: > > time ls > > time "ls" > > time 'ls' > > this one doesnt: > > time {ls} > > time { ls } > > > so do we really have to enclose in brackets? http://tldp.org/LDP/abs/html/functions.html time { ls; } The first s

Re: time command help

2009-07-22 Thread RaptorX
actually in this system: Slackware 12.2 that returns with an error... *[~]$ time bash "{ ls }" bash: { ls }: No such file or directory real0m0.002s user0m0.000s sys 0m0.002s [~]$* it really seems to be with the version of bash that Slackware uses. > The reason for this is that tim

Re: time command help

2009-07-22 Thread Mike McCarty
RaptorX wrote: > the following commands work fine: > > time ls > > time "ls" > > time 'ls' > > this one doesnt: > > time {ls} The reason for this is that time simply passes its argument to one of the exec() calls. So, "{ls}" is not the name of any command, and it can't be executed. However t

Re: time command help

2009-07-22 Thread RaptorX
well, it has to do with the host then, cause im using Slackware 12.2 as host. maybe the binutils there work little bit different... no problem then I will continue without the time measuring since is not really that important. thanks for the help guys On Wed, Jul 22, 2009 at 4:37 PM, Jaiyson w

Re: time command help

2009-07-22 Thread Jaiyson
I don't know if time bash "{ CC=gcc...}" will work for you...its been a couple months since I did my build so I'm already starting to forget the terminology...but I built my system using the 6.4 book and used the host 6.3 live cd. The only difference is that I used all the packages recommended

Re: time command help

2009-07-22 Thread RaptorX
the following commands work fine: time ls time "ls" time 'ls' this one doesnt: time {ls} time { ls } so do we really have to enclose in brackets? -- == "The shortest way to do many things is to do only one thing at a time

Re: time command help

2009-07-22 Thread RaptorX
I was just right now poking with that... it doesnt take it either... Now I just realized that if I make time CC="gcc -B without any quotation it does take the time of the first command but i never realized because the screen is constantly moving... here is what i got: checking whether to en

Re: time command help

2009-07-22 Thread Aditya Bankar
se of single quotes in outer quotes means everything (character, number or special character) is passed on to the command. Thanks, Aditya From: RaptorX To: LFS Support List Sent: Wednesday, 22 July, 2009 12:55:22 PM Subject: Re: time command help If I understoo

Re: time command help

2009-07-22 Thread RaptorX
thanks for the info... I am sure i am using 6.4... the problem was that i was using livecd... it seems to be outdated but now i downloaded from the book all the packages. so I should try: time bash "{ CC=gcc..}" ?? On Wed, Jul 22, 2009 at 1:05 PM, William Immendorf wrote: > On Wed, Jul 22

Re: time command help

2009-07-22 Thread William Immendorf
On Wed, Jul 22, 2009 at 2:25 AM, RaptorX wrote: > If I understood you correctly i should try: > > time bash "{/foo/bar}" > > the output is the same... Try putting a space after the first bracket. It works for me. Also, it looks like you're using 6.3. (because you're using gcc 4.1.2.) I don't recom

Re: time command help

2009-07-22 Thread RaptorX
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=

Re: time command help

2009-07-22 Thread Mike McCarty
RaptorX wrote: > Hi guys, > > This is my first time building LFS 6.4, im in chapter 5.4.1 at the moment > and I wanted to run the benchmark with the time command... > > as far as I understood I should make something like: > > *CC="gcc -B/usr/bin/" time {../binutils-2.18/configure --prefix=/tools

time command help

2009-07-21 Thread RaptorX
Hi guys, This is my first time building LFS 6.4, im in chapter 5.4.1 at the moment and I wanted to run the benchmark with the time command... as far as I understood I should make something like: *CC="gcc -B/usr/bin/" time {../binutils-2.18/configure --prefix=/tools --disable-nls --disable-werror