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

Bug#275140: Redirections and noclobber



On 08.10.04 Frank K?ster (frank@debian.org) wrote:

Hi,

> ,----
> | 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 .bashrc -- I'm careful)
> `----
> 
> Therefore I assumed that the "set -o" options get inherited as the
> environment does. Which is wrong, according to Bill's test which I can
> reproduce here. This is also correct according to POSIX
> (http://www.opengroup.org/onlinepubs/009695399/utilities/xcu_chap02.html#tag_02_12)
> 
> Nils, is it possible that your ~/.bashrc is read somehow by
> noninteractive shells? I am not very used to the details of bash
> invocation; according to the manpage it seems that non-interactive
> non-login shells only source $BASH_ENV; I am not sure about
> /etc/profile, however.
> 
man bash

<snip>
       /etc/profile

              The systemwide initialization file, executed for login
              shells                                           ^^^^^
       ~/.bash_profile
              The personal initialization file, executed for login
              shells                                         ^^^^^

H.
-- 
sigmentation fault



Reply to: