1 # /etc/profile
2
3 # System wide environment and startup programs, for login setup
4 # Functions and aliases go in /etc/bashrc
5
6 # It’s NOT a good idea to change this file unless you know what you
7 # are doing. It’s much better to create a custom.sh shell script in
8 # /etc/profile.d/ to make custom changes to your environment, as this
9 # will prevent the need for merging in future updates.
10
11 pathmunge () {
12 case “:${PATH}:” in
13 *:”$1″:*)
14 ;;
15 *)
16 if [ “$2” = “after” ] ; then
17 PATH=$PATH:$1
18 else
19 PATH=$1:$PATH
20 fi
21 esac
22 }
23
24
25 if [ -x /usr/bin/id ]; then
26 if [ -z “$EUID” ]; then
27 # ksh workaround
28 EUID=`/usr/bin/id -u`
29 UID=`/usr/bin/id -ru`
30 fi
31 USER=”`/usr/bin/id -un`”
32 LOGNAME=$USER
33 MAIL=”/var/spool/mail/$USER”
34 fi
コメント