"Carsten" == Carsten Karkola <carsten.karkola@mailbox.tu-dresden.de> writes:
Carsten> Hello, >> However, it looks like an internal problem of /bin/sh. >> Try running >> >> /bin/sh -x ./install.sh /home/slist >> >> This lists every command before it is executed (with >> variables expanded). Maybe it gives some more insight. Carsten> thanks for your help, now I ended up with Carsten> ... Carsten> + 4<& 0 Carsten> + ../src/setid root Carsten> + 0< install.sh2 Carsten> /bin/sh[11]: 4: 0403-007 Generated or received a Carsten> file descriptor number that is not valid. Carsten> + exit 1 ... Carsten> But why not use another shell ?! [...] Carsten> maybe it's a problem with the AIX sh ?! So I will force Carsten> the use of bash ... In bash the output starts with: Carsten> ... Carsten> + exec Carsten> + ../src/setid root Carsten> ... Carsten> instead of the +4<& 0. Yes, that sounds like sh and ksh have a problem with the "exec 4<& 0" in install.sh. Hmm, that means "open a new file descriptor (fd) number 4 and connect it to fd 0". I can imagine that having two fds reading from the same stream confuses the shell, especially if one of them is stdin (fd 0). Maybe it even cannot process this special variant of the exec instruction. Does anyone know the reason for this input redirection, BTW? Hans-Albert -- Hans-Albert Schneider <Hans-Albert.Schneider@mchp.siemens.de> Siemens AG phone: (+49) 89 636 45445 Corporate Technology fax: (+49) 89 636 42284 Munich, Germany -- To get my public PGP key, send me a mail with subject "send key" --