[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#275140: Redirections and noclobber



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?
First of all .bashrc is not invoked if you call /bin/sh and neigher 

bash ./test.sh

nor 

./test.sh


(with test.sh beeing "#!/bin/bash\necho test" and .bashrc = echo bashrc) 

is execuring .bashrc

Greetings
Bernd
-- 
  (OO)      -- Bernd_Eckenfels@Mörscher_Strasse_8.76185Karlsruhe.de --
 ( .. )      ecki@{inka.de,linux.de,debian.org}  http://www.eckes.org/
  o--o     1024D/E383CD7E  eckes@IRCNet  v:+497211603874  f:+497211606754
(O____O)  When cryptography is outlawed, bayl bhgynjf jvyy unir cevinpl!



Reply to: