From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Message-ID: <4289CDD9.502@altlinux.ru> Date: Tue, 17 May 2005 14:56:25 +0400 From: Alexey Rusakov User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.6) Gecko/20050512 Thunderbird/1.0.2 Mnenhy/0.7 X-Accept-Language: en-us, en MIME-Version: 1.0 To: ALT Linux Sisyphus discussion list Subject: Re: [sisyphus] Re: zsh =?UTF-8?B?0Lggd2tzMjY=?= References: <20050429174842.GA8593@eugene-home.ikz.ru> <20050517090446.GR3554@solemn.turbinal.org> <20050517104459.GA3821@basalt.office.altlinux.org> In-Reply-To: <20050517104459.GA3821@basalt.office.altlinux.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-BeenThere: sisyphus@altlinux.ru X-Mailman-Version: 2.1.5 Precedence: list Reply-To: ALT Linux Sisyphus discussion list List-Id: ALT Linux Sisyphus discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 May 2005 10:56:39 -0000 Archived-At: List-Archive: Dmitry V. Levin wrote: >On Tue, May 17, 2005 at 01:04:46PM +0400, Alexey Tourbin wrote: > > >>On Fri, Apr 29, 2005 at 11:48:43PM +0600, Eugene Vlasov wrote: >> >> >>>eugene ~ # grep PROMPT .zshrc >>>PROMPT='%n %4~ %(!.#.$) ' >>> >>>Раньше с такими настройками zsh отображал #, если работаешь из под >>>root и $ в противном случае. А теперь все время показывает #. bash все >>>показывает как надо. Можно конечно поменять PROMPT, но хотелось бы >>>понять, в чем может быть дело. >>> >>> >>$ info zsh 'Prompt Expansion' >> >>%# >> A `#' if the shell is running with privileges, a `%' if not. >> Equivalent to `%(!.#.%%)'. The definition of `privileged', for >> these purposes, is that either the effective user ID is zero, or, >> if POSIX.1e capabilities are supported, that at least one >> capability is raised in either the Effective or Inheritable >> capability vectors. >> >>В prompt.c используется функция privasserted(). >> >> > >Наверное, в wks26 все процессы привилегированные. > > :) У меня указанный промпт на wks26 работает так, как нужно. -- Alexey "Ktirf" Rusakov