Hello everybody,
This is a problem that has defeated my usual efforts. I checked the logs. I
cleaned out and re-emerged fish. I even--to the best of my middling linux
debugging skill--ran "su" through strace and gdb in a vain attempt to make
sense of the output flying past.
This is a cry for help.
So here's the situation: I've got a Gentoo x86 box, running on the unstable
tree, with nothing else especially fancy--but you, dear reader or fish
developer, probably don't care about that. I installed fish-1.23.1 with a
simple ebuild name change from the official fish-1.23.0.ebuild. It lost a
"glibc-2.8.patch" in the 1.23.0 ebuild, but I'm not sure that would affect
my current problem. But anyways, fish works just fine through my regular
user. I've set the shell for myself and root to "/bin/fish" in /etc/passwd.
I use it through screen, and it's very pretty. It also works through screen
running as root, as well as "su /bin/fish". I even--and this is cool--made a
custom prompt through the fish_prompt function to make a fancy--dare I say
_gorgeous_--prompt that changes color when logged on as root. Life is good.
However!
Whenever I log in through an "su", a "sudo su", or through a getty program
on the "real" virtual terminals, fish greets me with a cordial "Welcome to
fish, the friendly interactive shell; Type help for instructions on how to
use fish," but then just sits there, with a dumbfounded look on her face, as
if waiting for something--something long lost, perhaps a childhood friend,
or a missing configuration file. Something big, apparently, because as fish
hangs there, she uses up all my extra CPU time, according to top. "kill
<pid>" handles that problem just fine, even without the "-s 9" overkill
switch, so fish isn't hung _that_ bad. But no matter how long I wait, or how
much I _nag_--no key combination and/or profanity has yet stirred her--fish
does not respond, forever imploring me to "type 'help' for instructions on
how to use fish", in an almost ironic fashion.
What's funny though, is this only affects login shells. As I said before,
running "/bin/fish" through screen, gnome-terminal, or plain command works
without a hitch. Only in login shells does she hang in that annoying, yet
wistful manner. It is considerably more annoying than wistful, however. You,
dear reader, can probably imagine my chagrin when X stops working, leaving
me with getty prompts opening only to hung terminals, practically forcing a
liveCD recovery session for what would otherwise be a routine "vi
/etc/X11/xorg.conf" edit.
But don't get me wrong. Fish's real time syntax highlighting is _very_
shiny, and her tab completion far outclasses bash. I still love fish. I only
wish that we could take our relationship farther. There's always something
between us, whether it be screen, or the alpha blended transparency of
Compiz enhanced gnome-terminal. If there is anything you, the reader, can do
to help me, please reply post haste. And likewise, if there is anything more
I can provide, you need only ask. I am your humble servant.
Thank you,
Steven Ruppert
P.S. Here's my great fish_prompt function, in case that affects login shells
differently. I did test fish without it, and it had no effect either way.
function fish_prompt -d (N_ "Write out the prompt")
printf '%s[ %s%s %s%...@%s%s %s%s%s ]%s ' (set_color -o blue)
(set_color -o cyan) (date +%H:%M:%S) (set_color -o green) (whoami)
(set_color -o white) (set_color -o cyan) (hostname|cut -d . -f 1) (set_color
-o yellow) (prompt_pwd) (set_color blue) (set_color normal)
end
and for root (I'm not clever enough for one function setting of colors by
whoami testing)
function fish_prompt -d (N_ "Write out the prompt")
printf '%s{ %s%s %s%...@%s%s %s%s%s }%s ' (set_color -o red)
(set_color -o cyan) (date +%H:%M:%S) (set_color -o green) (whoami)
(set_color -o white) (set_color -o cyan) (hostname|cut -d . -f 1) (set_color
-o yellow) (prompt_pwd) (set_color -o red) (set_color normal)
end
------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
_______________________________________________
Fish-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fish-users