не работает скрипт из /etc/profile.d
Vladimir Skubriev
vladimir на skubriev.ru
Пн Окт 7 10:14:53 UTC 2013
Почему если я пропишу
HISTTIMEFORMAT="%d/%m/%y %T "
HISTCONTROL=ignoredups:erasedups # no duplicate entries
HISTSIZE=100000 # big big history
HISTFILESIZE=100000 # big big history
export HISTTIMEFORMAT HISTCONTROL HISTSIZE HISTFILESIZE
в /etc/bash.bashrc переменные окружения задаются
а если я пропишу это в histappend.sh* - то нет ?
ll /etc/profile.d/
total 24
drwxr-xr-x 2 root root 4096 Oct 7 12:36 ./
drwxr-xr-x 155 root root 12288 Oct 4 08:52 ../
-rw-r--r-- 1 root root 475 Mar 31 2012 bash_completion.sh
-rwxr-xr-x 1 root root 684 Oct 7 13:58 histappend.sh*
cat /etc/profile
# /etc/profile: system-wide .profile file for the Bourne shell (sh(1))
# and Bourne compatible shells (bash(1), ksh(1), ash(1), ...).
if [ "$PS1" ]; then
if [ "$BASH" ] && [ "$BASH" != "/bin/sh" ]; then
# The file bash.bashrc already sets the default PS1.
# PS1='\h:\w\$ '
if [ -f /etc/bash.bashrc ]; then
. /etc/bash.bashrc
fi
else
if [ "`id -u`" -eq 0 ]; then
PS1='# '
else
PS1='$ '
fi
fi
fi
# The default umask is now handled by pam_umask.
# See pam_umask(8) and /etc/login.defs.
if [ -d /etc/profile.d ]; then
for i in /etc/profile.d/*.sh; do
if [ -r $i ]; then
. $i
fi
done
unset i
fi
--
С Уважением,
специалист по техническому и программному обеспечению,
системный администратор
Скубриев Владимир
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Россия, Ростовская область, г. Таганрог
тел. моб: +7 (918) 504 38 20
skype: v.skubriev
icq: 214-800-502
www: skubriev.ru
More information about the ubuntu-ru
mailing list