On Thu, Mar 18, 2010 at 5:04 PM, <Casper.Dik at sun.com> wrote: > >>What if the builtin has more features? This is the common case for >>ksh93 in Opensolaris. > > It's still a bug. > >>Re performance in interactive shells: Did you ever used loops over >>many files in interactive mode? This is a COMMON usage. > > Again, we're still talking about profile shells; and while it is perhaps > possible to measure a difference between builtin-commands in a loop, I > doubt that you can actually notice the difference.
$ timex ksh93 -c 'find work/src | while read i ; do x=$(basename $i) ; done' real 26.35 user 9.34 sys 1.34 $ timex ksh93 -c 'builtin basename ; find work/src | while read i ; do x=$(basename $i) ; done' real 0.11 user 0.07 sys 0.03 Removing the builtin makes the loop 260 times slower. That's a damn fucking large "not notice the difference". Jenny -- Jennifer Pioch, Uni Frankfurt