public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] why emerge --config don't work
@ 2010-08-20 12:56 Zhu Sha Zang
  2010-08-20 14:50 ` Alex Schuster
  2010-08-20 21:39 ` Volker Armin Hemmann
  0 siblings, 2 replies; 4+ messages in thread
From: Zhu Sha Zang @ 2010-08-20 12:56 UTC (permalink / raw
  To: gentoo-user


[-- Attachment #1.1: Type: text/plain, Size: 922 bytes --]

 Hi there, why this command don't work in zsh:

/>>> Installing (1 of 1) sys-apps/tomoyo-tools-2.2.0_p20090727
 * Execute the following command to setup the initial policy configuration:
 *
 * emerge --config =sys-apps/tomoyo-tools-2.2.0_p20090727
 *
 * For more information, please visit the following.
 *
 * http://tomoyo.sourceforge.jp/

>>> Recording sys-apps/tomoyo-tools in "world" favorites file...
>>> Auto-cleaning packages...

>>> No outdated packages were found on your system.

 * GNU info directory index is up-to-date.
[root@sakurazukamori /usr/src/linux]$ emerge --config
=sys-apps/tomoyo-tools-2.2.0_p20090727                                                                                             
9:44
zsh: sys-apps/tomoyo-tools-2.2.0_p20090727 not found
[root@sakurazukamori /usr/src/linux]$
bash                                                   /

But work in bash...



[-- Attachment #1.2: Type: text/html, Size: 2627 bytes --]

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 262 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [gentoo-user] why emerge --config don't work
  2010-08-20 12:56 [gentoo-user] why emerge --config don't work Zhu Sha Zang
@ 2010-08-20 14:50 ` Alex Schuster
  2010-08-20 14:57   ` Florian CROUZAT
  2010-08-20 21:39 ` Volker Armin Hemmann
  1 sibling, 1 reply; 4+ messages in thread
From: Alex Schuster @ 2010-08-20 14:50 UTC (permalink / raw
  To: gentoo-user

Zhu Sha Zang writes:

>  Hi there, why this command don't work in zsh:
[...]
> [root@sakurazukamori /usr/src/linux]$ emerge --config
> =sys-apps/tomoyo-tools-2.2.0_p20090727
> 9:44
> zsh: sys-apps/tomoyo-tools-2.2.0_p20090727 not found

Interesting. Looks like zsh treats a '=' character specially. I don't use 
zsh, so I don't know why this is. Seems like it does something similar to 
the bash builtin 'type':

weird% echo =find
/usr/bin/find

Your command works, when the = is escaped by a \, or when the stuff is 
quoted.

	Wonko



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [gentoo-user] why emerge --config don't work
  2010-08-20 14:50 ` Alex Schuster
@ 2010-08-20 14:57   ` Florian CROUZAT
  0 siblings, 0 replies; 4+ messages in thread
From: Florian CROUZAT @ 2010-08-20 14:57 UTC (permalink / raw
  To: gentoo-user


On 20 août 2010, at 16:50, Alex Schuster wrote:

> weird% echo =find
> /usr/bin/find
> 
> Your command works, when the = is escaped by a \, or when the stuff is 
> quoted.

I don't use zsh, but a little of google's magic[1] shows:
 
> A command name with a = prepended is replaced with its full pathname. This can be very convenient. If it's not convenient for you, you can turn it off:
> 
> % ls
> =foo    =bar
> % ls =foo =bar
> zsh: foo not found
> % setopt noequals
> % ls =foo =bar
> =foo    =bar

[1] http://zsh.sourceforge.net/Intro/intro_7.html

-----
Florian.
/ For security reasons, all text in this mail 
  is double-rot13 encrypted. /




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [gentoo-user] why emerge --config don't work
  2010-08-20 12:56 [gentoo-user] why emerge --config don't work Zhu Sha Zang
  2010-08-20 14:50 ` Alex Schuster
@ 2010-08-20 21:39 ` Volker Armin Hemmann
  1 sibling, 0 replies; 4+ messages in thread
From: Volker Armin Hemmann @ 2010-08-20 21:39 UTC (permalink / raw
  To: gentoo-user

On Friday 20 August 2010, Zhu Sha Zang wrote:
>  Hi there, why this command don't work in zsh:
> 
> />>> Installing (1 of 1) sys-apps/tomoyo-tools-2.2.0_p20090727
>  * Execute the following command to setup the initial policy configuration:
>  *
>  * emerge --config =sys-apps/tomoyo-tools-2.2.0_p20090727
>  *
>  * For more information, please visit the following.
>  *
>  * http://tomoyo.sourceforge.jp/
> 
> >>> Recording sys-apps/tomoyo-tools in "world" favorites file...
> >>> Auto-cleaning packages...
> >>> 
> >>> No outdated packages were found on your system.
> 
>  * GNU info directory index is up-to-date.
> [root@sakurazukamori /usr/src/linux]$ emerge --config
> =sys-apps/tomoyo-tools-2.2.0_p20090727
> 9:44
> zsh: sys-apps/tomoyo-tools-2.2.0_p20090727 not found
> [root@sakurazukamori /usr/src/linux]$
> bash                                                   /
> 
> But work in bash...

emerge --config "=sys-apps/tomoyo-tools-2.2.0_p20090727"

should work

the same when you try to emerge a certain version

=sys/libs/foobar-1.2

doesn't work

"=sys/libs/foobar-1.2"

does



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-08-20 21:40 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-20 12:56 [gentoo-user] why emerge --config don't work Zhu Sha Zang
2010-08-20 14:50 ` Alex Schuster
2010-08-20 14:57   ` Florian CROUZAT
2010-08-20 21:39 ` Volker Armin Hemmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox