On Thu, 6 Oct 2005, Andreas Kahari wrote: > On 06/10/05, Ilya A. Kovalenko <[EMAIL PROTECTED]> wrote: > > TK> just edit a copy, chmod +x and mv(1) it into place. > > > > Slightly complicated, but works, because mv(1) removes > > old file, so sh(1) working either old version or new one > > (no "hybrids"). > > Yes, sh(1) will probably keep a descriptor to the old file and keep > using it until done. > > However, does this have any kind of other implications? The behaviour > that Ilya pointed out would not occur to me to be expected...
I know this behaviour form every Unix system I've worked on. Besides, the nice thing about the current way of doing things is that you can read a script form a pipe and have the desired behaviour without any special case code. -Otto