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

[Debian]: Re: profile



Peter Berlau <pberlau@muenster.de> wrote:

> vor einigen Tagen war hier eine mail, es suchte jemand
> eine Aufteilung der 
> `etc/profile'
> weil sie ihm zu lang und unübersichtlich war
> möglich ist
> in
> `/etc/profile'
> z.B.
> test -e /etc/profile.kde && . /etc/profile.kde
> test -e /etc/profile.pgres && . /etc/profile.pgres
> einzubauen
> und dann in  den jeweiligen Files die Konfigs abzulegen

Ich möchte in diesem Zusammenhang nochmal ausdrücklich auf die
Debian-Policy verweisen:

  3.8. Environment variables
  --------------------------

     No program may depend on environment variables to get reasonable
     defaults. (That's because these environment variables would have to be
     set in a system-wide configuration file like /etc/profile, which is
     not supported by all shells.)

     If a program should depend on environment variables for its
     configuration, the program has to be changed to fall back to a
     reasonable default configuration if these environment variables are
     not present. If this cannot be done easily (e.g., if the source code
     of a non-free program is not available), the program should be
     replaced by a small `wrapper' shell script which sets the environment
     variables and calls the original program.

     Here is an example of a wrapper script for this purpose: 
                    #!/bin/sh
                    BAR=/var/lib/fubar
                    export BAR
                    exec /usr/lib/foo/foo "$@"

     Furthermore, as `/etc/profile' is a configuration file of the `bash'
     package, no other package may put any environment variables or other
     commands into that file.

In diesem Sinne sollte man also vollständig auf Änderungen von
/etc/profile verzichten, wenn dies irgendwie möglich ist, und andere
Wege finden, um das gewünschte zu realisieren.

Tschoeeee

        Roland

-- 
  * Internet: roland@spinnaker.rhein.de * Fido: 2:2450/42 *
 PGP: 1024/DD08DD6D   2D E7 CC DE D5 8D 78 BE  3C A0 A4 F1 4B 09 CE AF
------------------------------------------------
Um sich aus der Liste auszutragen schicken Sie
bitte eine E-Mail an majordomo@jfl.de die im Body
"unsubscribe debian-user-de <your_email_address>"
enthaelt.
Bei Problemen bitte eine Mail an: Jan.Otto@jfl.de
------------------------------------------------
Anzahl der eingetragenen Mitglieder:     642


Reply to: