[pacman-dev] 回复: 回复: [Pacman v5.0.0] alias: -g: invalid option

秦凡东 mail at arondight.me
Tue Feb 16 11:39:15 UTC 2016


HI

Thack you very much I follow your idea and now everything is well.

I made an mistake on a if statements.
https://github.com/Arondight/profile/commit/48f13ebb36bb81a3967d790550c6484a020ad637

这是我的锅

_(:з」∠)_

------------------
/*************************
 * 秦凡东
 * arondight.me
 * @Arondight
 *************************/


 




------------------ 原始邮件 ------------------
发件人: "Martti Kühne";<mysatyre at gmail.com>;
发送时间: 2016年2月16日(星期二) 晚上7:16
收件人: "Discussion list for pacman development"<pacman-dev at archlinux.org>; 

主题: Re: [pacman-dev]回复: [Pacman v5.0.0] alias: -g: invalid option



On Tue, Feb 16, 2016 at 12:04 PM, 秦凡东 <mail at arondight.me> wrote:
> HI
>
> I always use zsh and this ocurred in zsh... And for same setting (both profile and shell), pacman 4.X is work well, but 5.0 will show alias error, I don't kown why...
>
> _(:з」∠)_
>
>

From what you describe this problem, it seems you haven't properly
split up your shell's different configurations without having one leak
into any other, and not source .zshrc in .bashrc or such things, which
are clearly the wrong thing to do. Your shell knows very well what to
source on its own.

For the sake of being able to get rid of the errors, instead you could
try wrapping your use of alias -g in your config with [[ -n
"$BASH_VERSION" ]] && alias ... or if [[ ...as previously... ]]; then
alias...; fi

cheers!
mar77i


More information about the pacman-dev mailing list