Martin Cigorraga | 6 Feb 20:31 2016
Picon
Gravatar

Fish as the Emacs' ansi-term shell

Hi,


Is there anyone else having this issue where there's an extra line printed whenever a <CR+LF> is invoked? (aka pressing ENTER)

I use a custom theme but this still happens with Fish's default theme both when running Emacs - or a client - from a terminal or a graphical environment.

Cheers,
-Martin
------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
_______________________________________________
Fish-users mailing list
Fish-users@...
https://lists.sourceforge.net/lists/listinfo/fish-users
info | 3 Feb 19:28 2016

Fw: new important message

Hello!

 

New message, please read http://cafedeprovence.co.uk/year.php

 

info <at> whywouldwe.com

------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
_______________________________________________
Fish-users mailing list
Fish-users@...
https://lists.sourceforge.net/lists/listinfo/fish-users
Kurtis Rader | 28 Jan 05:06 2016
Picon

stale git branches

I noticed that there are quite a few branches that Github considers stale when I did some cleanup of my Github branches:


Those stale branches show up when I attempt to complete a `git checkout` command on my system. They do not seem to serve any purpose (other than possibly the "Integration_*" branches). Can someone please delete them?

--
Kurtis Rader
Caretaker of the exceptional canines Junior and Hank
------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
_______________________________________________
Fish-users mailing list
Fish-users@...
https://lists.sourceforge.net/lists/listinfo/fish-users
Patrick | 24 Jan 14:03 2016

fish as a first programming language

Hi !

I thinking of introducing programming to my son. I am reading javascript 
for kids but it seems to me that many of these concepts would be easier 
in fish and a shell might be an even easier place to tinker than a 
browser/text editor.

I am looking for the lowest barrier to entry.

What do you think?

-Patrick

------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
Kurtis Rader | 14 Jan 05:10 2016
Picon

how to minimize inappropriate uses of the #fish IRC channel?

Since joining the fish project a few months ago I've noticed that all messages on the #fish IRC channel are for help from users (if you ignore the travis-ci build messages). Those messages would be better served by sending an email to the fish-users list. At my day job project specific IRC channels analogous to #fish are clearly documented to be for active developers and not a mechanism for asking for users to ask for help. Can we, and should we, do something to the documentation and or configuration of the IRC channel to make this clearer?

--
Kurtis Rader
Caretaker of the exceptional canines Junior and Hank
------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
_______________________________________________
Fish-users mailing list
Fish-users@...
https://lists.sourceforge.net/lists/listinfo/fish-users
Gert Leenders | 2 Jan 14:59 2016
Picon
Gravatar

String comparison and wildcards

Hi,

I stumbled upon a simple problem recently but i have a hard time finding the right answer... :(
I hope someone can quickly help me out?

We need a translation of this bash line [[ $TMUX == *'tmate'* ]] && echo tmate || echo tmux
to Fish
Gert
------------------------------------------------------------------------------
_______________________________________________
Fish-users mailing list
Fish-users@...
https://lists.sourceforge.net/lists/listinfo/fish-users
grondinm | 30 Dec 16:08 2015
Picon

Terminal Emulator

Hello Everyone,

Just discovered fish yesterday. So far i love it and can't wait to explore it more. 

Stupid question tho. What is the best/recommended terminal emulator to use that will allow fish to change background and text color properly? Or does it not even matter and it is a setting or something on my PC. I use xfce-terminal and the colors don't seem to change properly...for sure the background color does not change.

Thank you

Marc G rondin

------------------------------------------------------------------------------
_______________________________________________
Fish-users mailing list
Fish-users@...
https://lists.sourceforge.net/lists/listinfo/fish-users
Juan Simón | 29 Dec 10:44 2015
Picon
Gravatar

Sane scripting?

Hi,
I've installed fish shell (git version) and I have found that it's a great shell , it saves many keystrokes and comfortable to use, but a pain when writing scripts.I get the impression that want to differentiate themselves from other shells, and only for this, stuffs get complicated.

For example:

make install; or echo "error"; and echo "ok"
instead of
make install || echo "error" && echo "ok"

begin; echo 'error'; return 1; end
instead of
(echo 'error'; return 1)
but in variables assignment is valid:
set -l _version (readlink /usr/src/linux)

set m 1
instead of
m=1

$argv[1]
instead of
$1

set version (string split -m1 - (readlink /usr/src/linux))
instead of
version=${$(readlink /usr/src/linux)#*-}

etc...

One of the highlights of fish shell is supposedly simplicity: "...its syntax is simple, clean..." (http://fishshell.com/). I think the above examples speak for themselves.
It's annoying to me because I like too much this shell but its "Sane" Scripting no much.
In any case, thanks for your work.
Regards.

------------------------------------------------------------------------------
_______________________________________________
Fish-users mailing list
Fish-users@...
https://lists.sourceforge.net/lists/listinfo/fish-users
ben yakawp | 16 Dec 11:14 2015

Re: Problems with 'read' command in a tmux sub shell

> It also seems to me from your description of the problem like the bash
> script that is failing is executed automatically based on a tmux or fish
> config file rather than interactively entering the script name at a fish
> prompt.

It doesn't matter in this case.

> Regardless of whether the answer is yes or no we need
> clarification. Ideally you should be able to provide sufficient detail
> that
> someone else can reproduce the problem.

I try to describe the steps as detailed as possible, please let me know
what's missing:

Prerequisites:
------------------
1.a)  Ubuntu (in my case "Ubuntu 14.04.3 LTS")
1.b)  Tmux ( I've tested with with ubuntu included version 1.8, but also
built the latest release 2.1)
1.c)  Fish  ( I've tested with with ubuntu standard version ??, but also
built, version 2.2.0-459-gf045d9b)
1.d)  Bash (tested with standard GNU bash, version 4.3.11(1)-release

2.a)  A bash script 'test.sh' with the minimal content of:
~~~~~~~~~~~~~~
  #!/bin/bash
  #stty echo
  echo "Your name please"
  read input
  echo hello $input
  echo "Press enter to quit ..."
  read k 
~~~~~~~~~~~~~~~
2.b) Save the script under ~/test.sh and make it executable with chmod
0755 test.sh

3.)  A '~/.tmux.conf' configuration with the minimal content of
~~~~~~~~~~
set -g default-shell /usr/bin/fish
~~~~~~~~~~~

Steps to reproduce:
--------------------------
1.) Open a terminal emulator and call 'tmux'. As soon as tmux opens, you
can test the script by executing "~/test.sh". If the script works,
continue with step 2.

2.) Write the following command and press enter:
      tmux split-window "~/test.sh"

3.) Try to enter characters and try to press 'Enter'. If nothing
happens, you have to quit with Ctrl-C

Thanks for trying this at home ...

On Wed, Dec 16, 2015, at 04:53 AM, Kurtis Rader wrote:
> On Tue, Dec 15, 2015 at 5:46 AM, ben yakawp <ben.lists@...> wrote:
> >
> > I'm not sure what you mean. I think I do had a problem,
> 
> 
> I agree that you have a problem. But I think your diagnosis of the
> problem
> is incorrect.
> 
> 
> > but from what I
> > understand now, it was not caused by an error or anything but was a
> > consequence of a behaviour on how fish preserves tty modes between
> > commands ( see the answer of Mike Meyer with the link to
> > https://github.com/fish-shell/fish-shell/pull/2317 ).
> >
> > > What do you see if you run "stty -a" from a fish prompt?
> >
> > speed 38400 baud; rows 31; columns 113; line = 0;
> > intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = <undef>;
> > eol2 = <undef>; swtch = <undef>; start = ^Q; stop = ^S; susp = ^Z; rprnt
> > = ^R;
> > werase = ^W; lnext = ^V; flush = ^O; min = 1; time = 0;
> > -parenb -parodd cs8 -hupcl -cstopb cread -clocal -crtscts
> > -ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl ixon
> > -ixoff
> > -iuclc -ixany -imaxbel iutf8
> > opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0
> > vt0 ff0
> > isig icanon iexten echo echoe echok -echonl -noflsh -xcase -tostop
> > -echoprt
> > echoctl echoke
> >
> 
> The "stty -a" you ran is an external command like the bash script you
> mentioned. Both of them would have had the same terminal modes. You can
> see
> from your "stty -a" output that "echo" mode is enabled. So there is
> something else going on that you haven't documented. You say
> 
> > with the split I also run a command which in this case is a bash script
> which reads user input, like
> 
> When you say "reads input, like" I conclude your example script is meant
> as
> an approximation of the real script. What happens if you create a file
> with
> that conten, make it executable with "chmod 755", t and execute it from a
> fish prompt? Do you see the characters you type echoed? Is the [enter]
> key
> (carriage-return) correctly handled?
> 
> It also seems to me from your description of the problem like the bash
> script that is failing is executed automatically based on a tmux or fish
> config file rather than interactively entering the script name at a fish
> prompt. Regardless of whether the answer is yes or no we need
> clarification. Ideally you should be able to provide sufficient detail
> that
> someone else can reproduce the problem.
> 
> -- 
> Kurtis Rader
> Caretaker of the exceptional canines Junior and Hank

------------------------------------------------------------------------------
ben yakawp | 16 Dec 10:27 2015

Re: Problems with 'read' command in a tmux sub shell

> I agree that you have a problem. But I think your diagnosis of the
> problem is incorrect
I'm not aware of any diagnosis in my original message, if so it wasn't
my intention but rather a misunderstanding caused by my lacking English
skills. 

> What happens if you create a file with
> that conten, make it executable with "chmod 755", t and execute it from a
> fish prompt? Do you see the characters you type echoed? Is the [enter]
> key

You have to believe me I've tried every combination of tmux default
shell vs. non interactive shell from the script. The only case where it
didn't work with literally this script (I've tested excactly this
content), ran with the 'tmux split-window "./t.sh" command. 
It worked when I called the script manually from a fish shell, but not
in the tmux context. 

On Wed, Dec 16, 2015, at 04:53 AM, Kurtis Rader wrote:
> On Tue, Dec 15, 2015 at 5:46 AM, ben yakawp <ben.lists@...> wrote:
> >
> > I'm not sure what you mean. I think I do had a problem,
> 
> 
> I agree that you have a problem. But I think your diagnosis of the
> problem
> is incorrect.
> 
> 
> > but from what I
> > understand now, it was not caused by an error or anything but was a
> > consequence of a behaviour on how fish preserves tty modes between
> > commands ( see the answer of Mike Meyer with the link to
> > https://github.com/fish-shell/fish-shell/pull/2317 ).
> >
> > > What do you see if you run "stty -a" from a fish prompt?
> >
> > speed 38400 baud; rows 31; columns 113; line = 0;
> > intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = <undef>;
> > eol2 = <undef>; swtch = <undef>; start = ^Q; stop = ^S; susp = ^Z; rprnt
> > = ^R;
> > werase = ^W; lnext = ^V; flush = ^O; min = 1; time = 0;
> > -parenb -parodd cs8 -hupcl -cstopb cread -clocal -crtscts
> > -ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl ixon
> > -ixoff
> > -iuclc -ixany -imaxbel iutf8
> > opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0
> > vt0 ff0
> > isig icanon iexten echo echoe echok -echonl -noflsh -xcase -tostop
> > -echoprt
> > echoctl echoke
> >
> 
> The "stty -a" you ran is an external command like the bash script you
> mentioned. Both of them would have had the same terminal modes. You can
> see
> from your "stty -a" output that "echo" mode is enabled. So there is
> something else going on that you haven't documented. You say
> 
> > with the split I also run a command which in this case is a bash script
> which reads user input, like
> 
> When you say "reads input, like" I conclude your example script is meant
> as
> an approximation of the real script. What happens if you create a file
> with
> that conten, make it executable with "chmod 755", t and execute it from a
> fish prompt? Do you see the characters you type echoed? Is the [enter]
> key
> (carriage-return) correctly handled?
> 
> It also seems to me from your description of the problem like the bash
> script that is failing is executed automatically based on a tmux or fish
> config file rather than interactively entering the script name at a fish
> prompt. Regardless of whether the answer is yes or no we need
> clarification. Ideally you should be able to provide sufficient detail
> that
> someone else can reproduce the problem.
> 
> -- 
> Kurtis Rader
> Caretaker of the exceptional canines Junior and Hank

------------------------------------------------------------------------------
ben yakawp | 14 Dec 09:59 2015

make error: aclocal version mismatch

hi

Problem:
autoconf
./configure 
make

Error:
make[1]: Entering directory
`/home/ben/local/fish/src/fish-shell/pcre2-10.20'
CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/bash
/home/ben/dev/local/fish/src/fish-shell/pcre2-10.20/missing aclocal-1.15
-I m4
/home/ben/dev/local/fish/src/fish-shell/pcre2-10.20/missing: line 81:
aclocal-1.15: command not found
WARNING: 'aclocal-1.15' is missing on your system.
         You should only need it if you modified 'acinclude.m4' or
         'configure.ac' or m4 files included by 'configure.ac'.
         The 'aclocal' program is part of the GNU Automake package:
         <http://www.gnu.org/software/automake>
         It also requires GNU Autoconf, GNU m4 and Perl in order to run:
         <http://www.gnu.org/software/autoconf>
         <http://www.gnu.org/software/m4/>
         <http://www.perl.org/>
make[1]: *** [aclocal.m4] Error 127
make[1]: Leaving directory
`/home/ben/local/fish/src/fish-shell/pcre2-10.20'
make: *** [pcre2-10.20/.libs/libpcre2-32.a] Error 2

Solution:
   autoreconf -vfi
   ./configure
    make 

Specs:
$ cat /etc/lsb-release 
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=14.04
DISTRIB_CODENAME=trusty
DISTRIB_DESCRIPTION="Ubuntu 14.04.3 LTS"

$ make -v
GNU Make 3.81

$ autoconf --version
autoconf (GNU Autoconf) 2.69

------------------------------------------------------------------------------

Gmane