Discussion:
[Fish-users] /usr/local/bin/fish is an invalid shell.
Endolith
2008-01-11 21:22:31 UTC
Permalink
If I type "chsh -s /usr/local/bin/fish" in Ubuntu Gutsy, it says
"/usr/local/bin/fish is an invalid shell." Apparently fish needs to be inserted
into /etc/shells by the deb package for this to work. See
http://www.debian-administration.org/articles/231

Also reported at https://bugs.launchpad.net/ubuntu/+source/fish/+bug/182132 I
don't know which side this problem is on.
James Vega
2008-01-11 21:44:22 UTC
Permalink
Post by Endolith
If I type "chsh -s /usr/local/bin/fish" in Ubuntu Gutsy, it says
"/usr/local/bin/fish is an invalid shell." Apparently fish needs to be inserted
into /etc/shells by the deb package for this to work. See
http://www.debian-administration.org/articles/231
Also reported at https://bugs.launchpad.net/ubuntu/+source/fish/+bug/182132 I
don't know which side this problem is on.
You're installing your own shell by hand. You need to edit /etc/shells
and add the path yourself if you want chsh to accept it. It's not a
problem of Ubuntu or Fish.

The Ubuntu fish package *does* add itself to /etc/shells but that file
specifically accepts only absolute paths so it won't work for your
installed from source version unless you install it to /usr/bin.

James
--
GPG Key: 1024D/61326D40 2003-09-02 James Vega <***@jamessan.com>
endolith
2008-01-12 16:05:49 UTC
Permalink
Post by James Vega
You're installing your own shell by hand.
No; from a distro's package.
Post by James Vega
You need to edit /etc/shells
and add the path yourself if you want chsh to accept it. It's not a
problem of Ubuntu or Fish.
Nope. It was simply a problem with following fishshell.org's instructions. The
correct command for Ubuntu is:

chsh -s /usr/bin/fish

not

chsh -s /usr/local/bin/fish
Isaac Dupree
2008-01-12 16:36:28 UTC
Permalink
Post by endolith
Post by James Vega
You're installing your own shell by hand.
No; from a distro's package.
Post by James Vega
You need to edit /etc/shells
and add the path yourself if you want chsh to accept it. It's not a
problem of Ubuntu or Fish.
Nope. It was simply a problem with following fishshell.org's instructions. The
chsh -s /usr/bin/fish
oh, yes, that's where Ubuntu's fish is. It's working fine for me, who
chose it initially as my new user's login shell instead of using chsh :-)

~Isaac
Axel Liljencrantz
2008-01-12 19:10:58 UTC
Permalink
Post by endolith
Post by James Vega
You're installing your own shell by hand.
No; from a distro's package.
Post by James Vega
You need to edit /etc/shells
and add the path yourself if you want chsh to accept it. It's not a
problem of Ubuntu or Fish.
Nope. It was simply a problem with following fishshell.org's instructions. The
chsh -s /usr/bin/fish
not
chsh -s /usr/local/bin/fish
Hmm, yes, those instructions assume that you're installing fish in the
default location for the source. Precompiled packages will use other
directories, usually /usr/bin/fish, but not always. The current
instructions are suboptimal, but I'm not sure what to replace them
with. Suggestions are welcome.

Axel
Post by endolith
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Fish-users mailing list
https://lists.sourceforge.net/lists/listinfo/fish-users
endolith
2008-01-12 19:27:28 UTC
Permalink
Post by Axel Liljencrantz
Hmm, yes, those instructions assume that you're installing fish in the
default location for the source. Precompiled packages will use other
directories, usually /usr/bin/fish, but not always. The current
instructions are suboptimal, but I'm not sure what to replace them
with. Suggestions are welcome.
"..or wherever the fish binary is stored."
Axel Liljencrantz
2008-01-13 02:09:28 UTC
Permalink
Post by endolith
Post by Axel Liljencrantz
Hmm, yes, those instructions assume that you're installing fish in the
default location for the source. Precompiled packages will use other
directories, usually /usr/bin/fish, but not always. The current
instructions are suboptimal, but I'm not sure what to replace them
with. Suggestions are welcome.
"..or wherever the fish binary is stored."
Hopefully, the frontpage is now more to your liking! :-)

Axel
Post by endolith
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Fish-users mailing list
https://lists.sourceforge.net/lists/listinfo/fish-users
Loading...