Casper.Dik at Sun.COM wrote: > >> When a directory in $PATH is "remote", sleep can still sleep a long time. > >> Is there any reason to NOT use the following in /bin/alias? > >> > >> cmd=${0##*/} > > > >That's not the problem - the ".paths" lookup is a feature of ksh93 to > >look for directories with a "${dir}/.paths". The ksh93(1) manual page > >says this about ".paths": > > We're talking at cross purposes. > > What's i'm saying this: > > - yes, the patch will fix the tilde expansion > - but no, there are other which may cause the "sleep" take a long > time
Do you mean the bug if the locale is using ',' as decimal delimiter ? > - particularly, the attempt to open .paths in every directory in > $PATH may take a long time, particularly if you've just disabled > your network interface Fixed - see below... > - this is caused by calling: > > cmd=$(basename "$0") > > - and I noticed that it didn't happen when I use: > > cmd=${0##*/} Mhhh, this works because there is no PATH lookup required to find the matching command... > >AFAIK I can get rid of the PATH walk... > > How, then? The idea was to rename the PATH variable (e.g. via $ typeset -m ... #) to something like "saved_path" and later do a $ PATH="${saved_path}" "${cmd}" "$@" # which would have a similar effect... ... but your solution is shorter (and works since "sleep" is not bound to a specific PATH element). > >Should we fix this now or with the ksh93-integration update2 putback ? > > No rush there, just a bug needs to be recorded somewhere. Ok... new webrev is available at http://cr.opensolaris.org/~gisburn/ksh93_integration_cr_6807179_002/ ---- Bye, Roland -- __ . . __ (o.\ \/ /.o) roland.mainz at nrubsig.org \__\/\/__/ MPEG specialist, C&&JAVA&&Sun&&Unix programmer /O /==\ O\ TEL +49 641 3992797 (;O/ \/ \O;)