Re: Bug#275140: Redirections and noclobber

2004-10-09 Thread Bernd Eckenfels
On Sat, Oct 09, 2004 at 11:05:40PM +0100, Julian Gilbey wrote: > > | /var/lib/dpkg/info/tetex-base.postinst > You should do this carefully: > if [ -n "$PS1" ]; then > # set whatever interactive things you want > fi Why is the shell invoked by dpkg executing the .bashrc in the first place? Fi

Re: Bug#275140: Redirections and noclobber

2004-10-09 Thread Julian Gilbey
On Fri, Oct 08, 2004 at 12:33:23PM +0200, Frank K?ster wrote: > Nils wrote in his bug report: > > , > | The postinst script: > | /var/lib/dpkg/info/tetex-base.postinst > | fails if you set bash's "noclobber" (say in your .bashrc via set -o > noclobber). > | (yes, I set noclobber in root's .b

Re: Redirections and noclobber

2004-10-08 Thread Frank Küster
Hi Nils, hi all (remember to take -devel out if applicable, I'm getting the mail through the bug address), Bill Allombert <[EMAIL PROTECTED]> wrote: > On Thu, Oct 07, 2004 at 10:18:09AM +0200, Frank Küster wrote: >> >> But if I start apt-get upgrade or whatever from my interactive shell >> wit

Re: Redirections and noclobber

2004-10-07 Thread Bill Allombert
On Thu, Oct 07, 2004 at 10:18:09AM +0200, Frank Küster wrote: > Bill Allombert <[EMAIL PROTECTED]> wrote: > > > On Wed, Oct 06, 2004 at 05:02:00PM +0200, Frank Küster wrote: > >> but I > >> see no reason, neither in Policy nor in "common sense", why root > >> shouldn't use it. On the other hand, t

Re: Redirections and noclobber

2004-10-07 Thread Frank Küster
Bill Allombert <[EMAIL PROTECTED]> wrote: > On Wed, Oct 06, 2004 at 05:02:00PM +0200, Frank Küster wrote: >> but I >> see no reason, neither in Policy nor in "common sense", why root >> shouldn't use it. On the other hand, this usage of mktemp has been >> the result of discussions on [EMAIL PROTEC

Re: Redirections and noclobber

2004-10-06 Thread David Weinehall
On Wed, Oct 06, 2004 at 06:19:35PM +0200, Bill Allombert wrote: > On Wed, Oct 06, 2004 at 05:02:00PM +0200, Frank Küster wrote: > > Hi, > > > > in bug #275140, I was made aware of a problem with the handling of > > tempfiles in tetex's maintainer scripts, and it seems to be a general > > problem.

Re: Redirections and noclobber

2004-10-06 Thread Bill Allombert
On Wed, Oct 06, 2004 at 05:02:00PM +0200, Frank Küster wrote: > Hi, > > in bug #275140, I was made aware of a problem with the handling of > tempfiles in tetex's maintainer scripts, and it seems to be a general > problem. Basically, we do > > tempfile=`mktemp` > echo something > $tempfile > > an

Redirections and noclobber

2004-10-06 Thread Frank Küster
Hi, in bug #275140, I was made aware of a problem with the handling of tempfiles in tetex's maintainer scripts, and it seems to be a general problem. Basically, we do tempfile=`mktemp` echo something > $tempfile and this will fail if the noclobber option is set in the executing shell, because af