• Bug#266592: bash: document Debian-specific packaging changes (/etc/bash

    From KELEMEN Peter@1:229/2 to All on Wed Aug 18 13:50:08 2004
    From: [email protected]

    Package: bash
    Version: 3.0-5
    Severity: normal
    Tags: patch sid

    Please document behavioural changes compared to upstream that
    are Debian-specific. Notably the use of /etc/bash.bashrc and /etc/bash.bash_logout comes to mind. See included modified
    dpatches.

    Thanks,
    Peter

    *** man-bashrc.dpatch
    #! /bin/sh -e

    if [ $# -eq 3 -a "$2" = '-d' ]; then
    pdir="-d $3"
    elif [ $# -ne 1 ]; then
    echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
    exit 1
    fi
    case "$1" in
    -patch) patch $pdir -f --no-backup-if-mismatch -p1 < $0;;
    -unpatch) patch $pdir -f --no-backup-if-mismatch -R -p1 < $0;;
    *)
    echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
    exit 1
    esac
    exit 0

    # DP: document /etc/bash.bashrc in bash man page

    --- bash/doc/bash.1~ 2003-11-11 00:09:34.000000000 +0100
    +++ bash/doc/bash.1 2004-01-21 07:33:45.000000000 +0100
    @@ -169,7 +169,9 @@
    .PD
    Execute commands from
    .I file
    -instead of the standard personal initialization file
    +instead of the system wide initialization file
    +.I /etc/bash.bashrc
    + (Debian) and the standard personal initialization file
    .I ~/.bashrc
    if the shell is interactive (see
    .SM
    @@ -200,7 +202,9 @@
    below).
    .TP
    .B \-\-norc
    -Do not read and execute the personal initialization file
    +Do not read and execute the system wide initialization file
    +.I /etc/bash.bashrc
    + (Debian) and the personal initialization file
    .I ~/.bashrc
    if the shell is interactive.
    This option is on by default if the shell is invoked as
    @@ -308,13 +312,15 @@
    .PP
    When an interactive shell that is not a login shell is started,
    .B bash
    -reads and executes commands from \fI~/.bashrc\fP, if that file exists.
    +reads and executes commands from \fI/etc/bash.bashrc\fP (Debian) and \fI~/.bashrc\