>> 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
- 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
- this is caused by calling:
cmd=$(basename "$0")
- and I noticed that it didn't happen when I use:
cmd=${0##*/}
>AFAIK I can get rid of the PATH walk...
How, then?
>Should we fix this now or with the ksh93-integration update2 putback ?
No rush there, just a bug needs to be recorded somewhere.
Casper