Re: broken sysvinit?
On Fri, Jun 23, 2000 at 03:26:42PM +0200, Ruud de Rooij wrote:
> > > Now, I'll go read some docs to figure out exactly what those exec
> > > lines do :-)
> > it probably runs the prog in a subshell?
In previous versions it used a subshell, '( ... ) < /etc/fstab' to do that
stuff, but I don't know why did it need to be changed.
> No, the exec command can be used to open, close, or reassign file
> descriptors. In this case, it temporarily reassigns stdin to fd 10,
> so that it can use stdin for parsing fstab. Then later in the script
> it reassigns fd 10 back to stdin.
> Unfortunately ash only understands single-digit filedescriptors, it
> $ exec 2>&1
> $ exec 9>&1
> $ exec 10>&1
> exec: 10: not found
Quick fix would be to use 9, unless ash can be fixed in the same time.
Digital Electronic Being Intended for Assassination and Nullification