FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Gentoo > Gentoo User

 
 
LinkBack Thread Tools
 
Old 08-20-2010, 12:56 PM
Zhu Sha Zang
 
Default why emerge --config don't work

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...
 
Old 08-20-2010, 02:50 PM
Alex Schuster
 
Default why emerge --config don't work

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
 
Old 08-20-2010, 02:57 PM
Florian CROUZAT
 
Default why emerge --config don't work

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. /
 
Old 08-20-2010, 09:39 PM
Volker Armin Hemmann
 
Default why emerge --config don't work

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
 

Thread Tools




All times are GMT. The time now is 01:32 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org