>cc: ksh93-integration-discuss at opensolaris.org Peter.Memishian at Sun.COM >Subject: Re: Re: [ksh93-integration-discuss] [tools-discuss] ksh93 sleep >-------- > >> Nobody knows what the problem is (it hasn't been root-caused yet), or >> if any of the later fixes address it, but the workaround is to remove >> the ksh93 /usr/bin/sleep from the system and replace with the old >> binary. >> > >I sent Roland a patch for the ~() problem trying to do ~ substitution.
I'm sponsoring that for Roland; however, one of the problems we have is the fact that "sleep 1" may sleep for a very long time. And even with that fix, I observe that ksh93 tries to open ".paths" in any directory in $PATH. This happens when we run: cmd=$(basename $0) it *doesn't* happen when I run basename like this: basename $0 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##*/} I also noticed that ksh93 tries to readlink("/proc/<pid>/exe"). In Solaris, this can be found through "/proc/self/path/a.out" or using getexecname(). Casper