Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 414201 - Make directions for support more zsh friendlier
Summary: Make directions for support more zsh friendlier
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Interface (emerge) (show other bugs)
Hardware: All Linux
: Lowest minor (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks: 409383
  Show dependency tree
 
Reported: 2012-05-01 04:09 UTC by Ioannis Galanommatis
Modified: 2012-05-09 23:17 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ioannis Galanommatis 2012-05-01 04:09:46 UTC
Hi!

I noticed this emerge message:
If you need support, post the output of 'emerge --info =media-gfx/gimp-2.8.0_rc1'
And clicking dragging and copying/pasting to console writes this:
emerge --info =media-gfx/gimp-2.8.0_rc1

However, for some reason zsh (but not bash) has some problem with the equal sign (=) and it needs to be quoted as
emerge --info '=media-gfx/gimp-2.8.0_rc1'
Or of course double quotes would be just as good:
emerge --info "=media-gfx/gimp-2.8.0_rc1"
Otherwise it says:
zsh: media-gfx/gimp-2.8.0_rc1 not found

Same applies to emerge -pqv message right below

I don't know if this is a result of a messing with zsh options (I tend to do this), but it wouldn't hurt to quote package names anyway if there is a special character like "=".

Thank you!
Comment 1 Jeff (JD) Horelick (RETIRED) gentoo-dev 2012-05-01 04:15:10 UTC
I think this can be fixed with a certain zsh option (I can't recall which), but in my personal opinion, if you choose to use zsh, you should know about this and not have to be told (or it should be put in the Gentoo ZSH Guide). I personally believe that the bash users (probably the majority) shouldn't be told to type an extra 2 characters to run a command if they don't have to.
Comment 2 Mike Gilbert gentoo-dev 2012-05-01 04:28:47 UTC
FYI, you are running into '=' expansion. I find it annoying too. :)

http://zsh.sourceforge.net/Doc/Release/Expansion.html#g_t_0060_003d_0027-expansion
Comment 3 Ioannis Galanommatis 2012-05-01 04:33:53 UTC
(In reply to comment #1)
> I think this can be fixed with a certain zsh option (I can't recall which),
> but in my personal opinion, if you choose to use zsh, you should know about
> this and not have to be told (or it should be put in the Gentoo ZSH Guide).
> I personally believe that the bash users (probably the majority) shouldn't
> be told to type an extra 2 characters to run a command if they don't have to.

I don't think that portage should be more friendly to bash than zsh, and I don't quite like the idea of "I am the majority, comply with me", but it's just two characters, a few milliseconds to type. After all most would just copy paste.

My $0.02
Comment 4 Arfrever Frehtes Taifersar Arahesis 2012-05-01 05:44:44 UTC
Portage could print quotes only for zsh users :) .

>>> import os, pwd
>>> pwd.getpwuid(os.getuid()).pw_shell
'/bin/bash'
>>>
Comment 5 Ben de Groot (RETIRED) gentoo-dev 2012-05-01 08:48:18 UTC
And if you use a backslash instead of quotes, it's only one character more...
Comment 7 Zac Medico gentoo-dev 2012-05-08 17:34:38 UTC
This is in 2.2.0_alpha102.
Comment 8 Zac Medico gentoo-dev 2012-05-09 23:17:15 UTC
This is fixed in 2.1.10.58.