<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.23562">
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2 face=Arial>Trying to get fish 2.1.1 shell working (via
PuTTY ssh terminal) on DragonFlyBSD 3.8.2 running on a QEMU-KVM virtual machine
provided by Elastic Hosts (EH) <A
href="http://www.elastichosts.com">www.elastichosts.com</A>.</DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>DragonFlyBSD 3.8.2 installed with no
trouble on the EH VM and seems to be running very well. </FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>The DragonFlyBSD login displays the following
version string:</FONT></DIV>
<BLOCKQUOTE style="MARGIN-RIGHT: 0px" dir=ltr>
<DIV><EM><FONT color=#0000ff>DragonFly v3.8.2-RELEASE (X86_64_GENERIC) #18:
Thu Aug 14 19:42:15 PDT 2014</FONT></EM></DIV></BLOCKQUOTE></FONT>
<DIV><FONT size=2 face=Arial>Unix is pretty new to me. I'm still working as root
user, just until I get fish, tmux and vim working.</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>* * *</FONT></DIV>
<DIV><FONT size=2 face=Arial>* * *</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>The pkgng installation of fish shell seemed to work
fine:</FONT></DIV>
<BLOCKQUOTE style="MARGIN-RIGHT: 0px" dir=ltr>
<DIV><FONT size=2 face=Arial><EM><FONT color=#0000ff>[root@admin.its-eto] /
(102)# pkg install fish<BR>Updating repository catalogue<BR>Fetching meta.txz:
100% of 264 B<BR>Fetching digests.txz: 100% of 2 MB<BR>Fetching
packagesite.txz: 100% of 4 MB</FONT></EM></DIV>
<DIV><EM><FONT color=#0000ff></FONT></EM> </DIV>
<DIV><EM><FONT color=#0000ff>Adding new entries: 100%<BR>Incremental update
completed, 21724 packages processed:<BR>0 packages updated, 0 removed and
21724 added.<BR>New version of pkg detected; it needs to be installed
first.<BR>The following 1 packages will be affected (of 0
checked):</FONT></EM></DIV>
<DIV><EM><FONT color=#0000ff></FONT></EM> </DIV>
<DIV><EM><FONT color=#0000ff>Installed packages to be
UPGRADED:<BR> pkg: 1.3.6 ->
1.3.8_3</FONT></EM></DIV>
<DIV><EM><FONT color=#0000ff></FONT></EM> </DIV>
<DIV><EM><FONT color=#0000ff>The process will require 45 KB more space<BR>2 MB
to be downloaded</FONT></EM></DIV>
<DIV><EM><FONT color=#0000ff></FONT></EM> </DIV>
<DIV><EM><FONT color=#0000ff>Proceed with this action [y/N]: y<BR>Fetching
pkg-1.3.8_3.txz: 100% of 2 MB<BR>Checking integrity... done (0
conflicting)<BR>[1/1] Upgrading pkg from 1.3.6 to 1.3.8_3: 100%<BR>Updating
repository catalogue<BR>Avalon repository is up-to-date<BR>All repositories
are up-to-date<BR>The following 1 packages will be affected (of 0
checked):</FONT></EM></DIV>
<DIV><EM><FONT color=#0000ff></FONT></EM> </DIV>
<DIV><EM><FONT color=#0000ff>New packages to be
INSTALLED:<BR> fish:
2.1.1</FONT></EM></DIV>
<DIV><EM><FONT color=#0000ff></FONT></EM> </DIV>
<DIV><EM><FONT color=#0000ff>The process will require 4 MB more space<BR>829
KB to be downloaded</FONT></EM></DIV>
<DIV><EM><FONT color=#0000ff></FONT></EM> </DIV>
<DIV><EM><FONT color=#0000ff>Proceed with this action [y/N]: y<BR>Fetching
fish-2.1.1.txz: 100% of 829 KB<BR>Checking integrity... done (0
conflicting)<BR>[1/1] Installing fish-2.1.1: 100%<BR>[root@admin.its-eto] /
(103)#</FONT></EM></FONT></DIV></BLOCKQUOTE>
<DIV><FONT size=2 face=Arial>* * *</FONT></DIV>
<DIV><FONT size=2 face=Arial>* * *</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>The fish man page displays correctly (having
replaced the fish game man page).</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=2 face=Arial>There seem to be fish and fishd
binaries:</FONT></DIV>
<BLOCKQUOTE style="MARGIN-RIGHT: 0px" dir=ltr>
<DIV><EM><FONT color=#0000ff><FONT size=2 face=Arial>[root@admin.its-eto] /etc
(106)# cd /usr/local/bin<BR>[root@admin.its-eto] /usr/local/bin (107)# ls
-AdGl fish*<BR>-rwxr-xr-x 1 root wheel 854792 Oct 4
10:55 fish<BR>-rwxr-xr-x 1 root wheel 95312 Oct
4 10:55 fish_indent<BR>-rwxr-xr-x 1 root wheel 156344
Oct 4 10:55 fish_pager<BR>-rwxr-xr-x 1 root wheel
117560 Oct 4 10:55 fishd</FONT></FONT></EM></DIV></BLOCKQUOTE>
<DIV><FONT size=2 face=Arial>
<DIV><FONT size=2 face=Arial>The file used by fishd is present:</FONT></DIV>
<BLOCKQUOTE style="MARGIN-RIGHT: 0px" dir=ltr>
<DIV><EM><FONT color=#0000ff>[root@admin.its-eto] /root/.config/fish (143)# ls
-l<BR>total 0<BR>-rw------- 1 root wheel 140 Nov 27 09:30
fishd.admin.its-eto<BR>[root@admin.its-eto] /root/.config/fish (144)# cat
fishd.admin.its-eto<BR># This file is automatically generated by the fishd
universal variable daemon.<BR># Do NOT edit it directly, your changes will be
overwritten.<BR>[root@admin.its-eto] /root/.config/fish
(145)#</FONT></EM></DIV></BLOCKQUOTE>
<DIV><FONT size=2 face=Arial>The list of shells reflects the fish
installation:</FONT></DIV>
<BLOCKQUOTE style="MARGIN-RIGHT: 0px" dir=ltr>
<DIV><EM><FONT color=#0000ff>[root@admin.its-eto] / (101)# cd
/etc<BR>[root@admin.its-eto] /etc (102)# ls -aAdGl *shell*<BR>-rw-r--r--
1 root wheel 349 Nov 27 07:17 shells<BR>[root@admin.its-eto] /etc
(103)# cat shells<BR># $FreeBSD: src/etc/shells,v 1.3.2.1 2000/07/10 08:47:17
obrien Exp $<BR># $DragonFly: src/etc/shells,v 1.2 2003/06/17 04:24:45 dillon
Exp $<BR>#<BR># List of acceptable shells for chpass(1).<BR># Ftpd will not
allow users to connect who are not using<BR># one of these
shells.</FONT></EM></DIV>
<DIV><EM><FONT color=#0000ff></FONT></EM> </DIV>
<DIV><EM><FONT
color=#0000ff>/bin/sh<BR>/bin/csh<BR>/bin/tcsh<BR>/usr/local/libexec/git-core/git-shell<BR>/usr/local/bin/fish<BR>[root@admin.its-eto]
/etc (104)#</FONT></EM></DIV></BLOCKQUOTE>
<DIV><FONT size=2 face=Arial>The fish shell does appear to be somewhat
operational, according to the "fish -v" command:</FONT></DIV>
<BLOCKQUOTE style="MARGIN-RIGHT: 0px" dir=ltr>
<DIV><FONT color=#0000ff size=2 face=Arial><EM>[root@admin.its-eto]
/usr/local/bin (108)# fish -v<BR>fish, version 2.1.1<BR>[root@admin.its-eto]
/usr/local/bin (109)#</EM></FONT></DIV></BLOCKQUOTE></FONT></DIV>
<DIV><FONT size=2 face=Arial>* * *</FONT></DIV>
<DIV><FONT size=2 face=Arial>* * *</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>However, when I try to start a fish shell from a
tcsh command prompt, it looks like the fish shell might be starting -- the
string "<EM><FONT color=#0000ff>fish:</FONT></EM>" is displayed) -- but from
then on it doesn't seem to respond correctly to any keyboard command input
on the ssh terminal. It just goes to the next line when I type "exit" and press
the <Enter> key, or press <Ctrl+c>:</FONT></DIV>
<BLOCKQUOTE style="MARGIN-RIGHT: 0px" dir=ltr>
<DIV><FONT color=#0000ff size=2 face=Arial><EM>[root@admin.its-eto]
/usr/local/bin (106)# fish<BR>fish:</EM></FONT></DIV>
<DIV> </DIV>
<DIV><FONT color=#0000ff size=2
face=Arial><EM>^C<BR>^C<BR>exit<BR>^Z<BR>quit<BR>exit</EM></FONT></DIV></BLOCKQUOTE>
<DIV><FONT size=2 face=Arial>The only way I can find to break out of this
fish shell dead end (I'm not tcsh-smart enough yet to create multiple sessions)
is to shutdown and start the DragonFlyBSD VM from the Elastic Hosts cloud
control panel.</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>I've tried starting a fish shell with "fish -i" and
"fish -l" and both options exhibit the same problem as plain "fish". Using other
options e.g. "fish -h" also exhibit the same problem as plain "fish" (i.e didn't
display any help text, just entered the terminal dead end like plain
"fish").</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>* * *</FONT></DIV>
<DIV><FONT size=2 face=Arial>* * *</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>I want to get fish working first as a sub-shell
under tcsh (so root user can switch to fish after login). I plan to keep the
root user's default shell as tcsh to ensure a working root user for emergencies
e.g. booting DragonFlyBSD in single-uer mode.</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>I will make fish the default shell for other users
on the DragonFlyBSD installation.</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>Any suggestions for how I can get fish shell
working as root user's non-default shell would be greatly
appreciated.</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>Thanks.</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>Steve</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV></BODY></HTML>