MP <singular...@gmail.com> writes: >> your "cd" builtin seems to print the name of the directory it changes > > I have CDPATH set, so that may be the cause why cd prints the directory name. > >> into. Is that something you configured or does your /bin/sh do that by >> default? What is your /bin/sh? > > # ll /bin/sh > lrwxrwxrwx 1 root root 4 Mar 2 20:40 /bin/sh -> bash > > bash is bash, version 3.2-5 > > I unset CDPATH, retried the installation and now it works. So perhaps > unsetting the CDPATH somewhere at start of the script would fix > this... > > Martin Petricek
Indeed that is the culprit. The CDPATH behaviour seems verry odd. Doesn't that also break postint scripts for you? Debconf uses stdin/out to communicate with the postinst script and if that does a cd then debconf will give an error and everything breaks. Also any shell script you call that does a relative cd might get the totaly wrong directory. Seems like setting CDPATH for non-interactive shell should randomly break things all over the place. I would suggest only setting it for interactive shells. E.g. set it in ~/.bashrc and not ~/.profile and do not export it. MfG Goswin -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org