* [sisyphus] alias problems @ 2007-04-10 0:39 Ivan Adzhubey 2007-04-10 0:47 ` Dmitry V. Levin 0 siblings, 1 reply; 4+ messages in thread From: Ivan Adzhubey @ 2007-04-10 0:39 UTC (permalink / raw) To: sisyphus Добрый день! Никак не могу разобраться, почему команда alias, будучи помещена в /etc/profile.d/mysettings.sh, не отрабатывает для (и только для) интерактивного логина? Все прочие настройки оттуда успешно экспортируются, а при логине по ssh или 'su - user' - и alias тоже отрабатывает, а вот при локальном логине в KDE - нет. Мистика какая-то, никто не подскажет куда копать? Сизиф последний естественно. --Иван ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [sisyphus] alias problems 2007-04-10 0:39 [sisyphus] alias problems Ivan Adzhubey @ 2007-04-10 0:47 ` Dmitry V. Levin 2007-04-10 0:52 ` Ivan Adzhubey 0 siblings, 1 reply; 4+ messages in thread From: Dmitry V. Levin @ 2007-04-10 0:47 UTC (permalink / raw) To: ALT Linux Sisyphus mailing list [-- Attachment #1: Type: text/plain, Size: 775 bytes --] Hi, On Mon, Apr 09, 2007 at 08:39:29PM -0400, Ivan Adzhubey wrote: > Никак не могу разобраться, почему команда alias, будучи помещена > в /etc/profile.d/mysettings.sh, не отрабатывает для (и только для) > интерактивного логина? Все прочие настройки оттуда успешно экспортируются, а > при логине по ssh или 'su - user' - и alias тоже отрабатывает, а вот при > локальном логине в KDE - нет. Мистика какая-то, никто не подскажет куда > копать? Вероятно, "локальный логин в KDE" не является полноценным логином, т.е. shell запускается не как login shell. По этой причине файлы с alias'ами имеет смысл помещать в другой каталог, /etc/bashrc.d/, поскольку файлы оттуда загружаются для всех интерактивных запусков, а не только для login shell. -- ldv [-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --] ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [sisyphus] alias problems 2007-04-10 0:47 ` Dmitry V. Levin @ 2007-04-10 0:52 ` Ivan Adzhubey 2007-04-10 0:57 ` Dmitry V. Levin 0 siblings, 1 reply; 4+ messages in thread From: Ivan Adzhubey @ 2007-04-10 0:52 UTC (permalink / raw) To: ALT Linux Sisyphus mailing list On Monday 09 April 2007 08:47:21 pm Dmitry V. Levin wrote: > Hi, > > On Mon, Apr 09, 2007 at 08:39:29PM -0400, Ivan Adzhubey wrote: > > Никак не могу разобраться, почему команда alias, будучи помещена > > в /etc/profile.d/mysettings.sh, не отрабатывает для (и только для) > > интерактивного логина? Все прочие настройки оттуда успешно > > экспортируются, а при логине по ssh или 'su - user' - и alias тоже > > отрабатывает, а вот при локальном логине в KDE - нет. Мистика какая-то, > > никто не подскажет куда копать? > > Вероятно, "локальный логин в KDE" не является полноценным логином, т.е. > shell запускается не как login shell. > > По этой причине файлы с alias'ами имеет смысл помещать в другой каталог, > /etc/bashrc.d/, поскольку файлы оттуда загружаются для всех интерактивных > запусков, а не только для login shell. В общем и я к таким же выводам пришел, но как-то это нелогично, вам не кажется? Что уж может быть интерактивнее сессии КДЕ? К тому же, когда надо кучу специфических настроек для конкретной софтины добавлять - удобно их держать в одном файле, а не распихивать по нескольким. --Иван ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [sisyphus] alias problems 2007-04-10 0:52 ` Ivan Adzhubey @ 2007-04-10 0:57 ` Dmitry V. Levin 0 siblings, 0 replies; 4+ messages in thread From: Dmitry V. Levin @ 2007-04-10 0:57 UTC (permalink / raw) To: ALT Linux Sisyphus mailing list [-- Attachment #1: Type: text/plain, Size: 1382 bytes --] On Mon, Apr 09, 2007 at 08:52:58PM -0400, Ivan Adzhubey wrote: > On Monday 09 April 2007 08:47:21 pm Dmitry V. Levin wrote: > > On Mon, Apr 09, 2007 at 08:39:29PM -0400, Ivan Adzhubey wrote: > > > Никак не могу разобраться, почему команда alias, будучи помещена > > > в /etc/profile.d/mysettings.sh, не отрабатывает для (и только для) > > > интерактивного логина? Все прочие настройки оттуда успешно > > > экспортируются, а при логине по ssh или 'su - user' - и alias тоже > > > отрабатывает, а вот при локальном логине в KDE - нет. Мистика какая-то, > > > никто не подскажет куда копать? > > > > Вероятно, "локальный логин в KDE" не является полноценным логином, т.е. > > shell запускается не как login shell. > > > > По этой причине файлы с alias'ами имеет смысл помещать в другой каталог, > > /etc/bashrc.d/, поскольку файлы оттуда загружаются для всех интерактивных > > запусков, а не только для login shell. > > В общем и я к таким же выводам пришел, но как-то это нелогично, вам не > кажется? Что уж может быть интерактивнее сессии КДЕ? И всё же далеко не каждый интерактивный shell является ещё и login shell. > К тому же, когда надо > кучу специфических настроек для конкретной софтины добавлять - удобно их > держать в одном файле, а не распихивать по нескольким. Те, кто мантейнит пакеты, распихивать уже давно привыкли. :) -- ldv [-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --] ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2007-04-10 0:57 UTC | newest] Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2007-04-10 0:39 [sisyphus] alias problems Ivan Adzhubey 2007-04-10 0:47 ` Dmitry V. Levin 2007-04-10 0:52 ` Ivan Adzhubey 2007-04-10 0:57 ` Dmitry V. Levin
ALT Linux Sisyphus discussions This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \ sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru public-inbox-index sisyphus Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.sisyphus AGPL code for this site: git clone https://public-inbox.org/public-inbox.git