Главная страница


ru.unix.bsd

 
 - RU.UNIX.BSD ------------------------------------------------------------------
 From : Auster                               2:5020/400     07 Aug 2007  16:00:22
 To : Eugene Grosbein
 Subject : Re: zsh & .profile
 -------------------------------------------------------------------------------- 
 
 Eugene Grosbein <Eugene.Grosbein@f1.n5006.z2.fidonet.org> wrote:
  
 >>> чтобы применить изменения без релогина, говорил: . .profile
 >>> А zsh на это ругается, мол файла якобы нет (эмулирует hidden?)
 >
 
   точней сказать следует SUS/POSIX:
      If file does not contain a slash, the shell shall use the search
      path specified by PATH to find the directory containing file. ...
      If no readable file is found, ... an interactive shell shall write
      a diagnostic message to standard error,
 
 > EG>> Как перечитать профиль в zsh?
 >
 
   аналогично вызову комманд
   - или полный путь, нп `. /path/file',
   - или слеш в относительный, нп `. ./file'.
 > AF>  C нашей стороны все работает.
 > AF> PS: Ты каталогом часом не промахнулся?
 > 
 > У меня не работает. Hе ошибся,
 > sh -c ". .profile" отрабатывает,
 >
 
   башизм.
 
   % for sh in sh bash ksh zsh; do
   msg=$(echo -n ' => '; $sh -c ". .profile" 2>&1 >/dev/null)
   test $? -eq 0 && msg=': POSSIBLY BASHISM'
   echo "$sh$msg"
   done
 
   sh => .: .profile: not found
 
   bash: POSSIBLY BASHISM
   ksh => ksh: .: .profile: not found
   zsh => .: no such file or directory: .profile
 -- 
 Auster Vl.
 --- ifmail v.2.15dev5.4
  * Origin: Demos online service (2:5020/400)
 
 

Вернуться к списку тем, сортированных по: возрастание даты  уменьшение даты  тема  автор 

 Тема:    Автор:    Дата:  
 Re: zsh & .profile   Auster   07 Aug 2007 16:00:22 
Архивное /ru.unix.bsd/46007fb54ccd5.html, оценка 1 из 5, голосов 10
Яндекс.Метрика
Valid HTML 4.01 Transitional