Wilfred Godfrey | 13 Sep 00:57 2014

Bug Report

Bug report!

fish: function eval called while blocking signals.
fish: This is a bug. Break on bugreport to debug.If you can reproduce it, please send a bug report to fish-users <at> lists.sf.net.
fish: Backtrace:
0   fish                                0x0000000109e86661 _Z15show_stackframev + 94
1   fish                                0x0000000109e6357d _ZN8parser_t4evalERKNSt3__112basic_stringIwNS0_11char_traitsIwEENS0_9allocatorIwEEEERK10io_chain_t12block_type_t + 185
2   fish                                0x0000000109e46706 _ZL11start_fishdv + 358
3   fish                                0x0000000109e7d142 _ZL10get_socketv + 62
4   fish                                0x0000000109e7d4f0 _ZL9reconnectv + 91
5   fish                                0x0000000109e7d1d4 _Z22env_universal_read_allv + 32
6   fish                                0x0000000109e7d63e _ZL16check_connectionv + 169
7   fish                                0x0000000109e7d288 _Z21env_universal_barrierv + 140
8   fish                                0x0000000109e47b4d _Z14env_export_arrb + 74
9   fish                                0x0000000109e4a9e2 _Z8exec_jobR8parser_tP5job_t + 1432
10  fish                                0x0000000109e63382 _ZN8parser_t8eval_jobEP11tokenizer_t + 1532
11  fish                                0x0000000109e63666 _ZN8parser_t4evalERKNSt3__112basic_stringIwNS0_11char_traitsIwEENS0_9allocatorIwEEEERK10io_chain_t12block_type_t + 418
12  fish                                0x0000000109e4cbba _ZL22exec_subshell_internalRKNSt3__112basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEEEPNS_6vectorIS5_NS3_IS5_EEEEb + 378
13  fish                                0x0000000109e4f1aa _ZL15expand_cmdsubstR8parser_tRKNSt3__112basic_stringIwNS1_11char_traitsIwEENS1_9allocatorIwEEEERNS1_6vectorI12completion_tNS5_ISB_EEEE + 391
14  fish                                0x0000000109e4e18b _Z13expand_stringRKNSt3__112basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEEERNS_6vectorI12completion_tNS3_IS9_EEEEi + 368
15  fish                                0x0000000109e60511 _ZN8parser_t23parse_job_argument_listEP9process_tP5job_tP11tokenizer_tRNSt3__16vectorI12completion_tNS6_9allocatorIS8_EEEEb + 1475
16  fish                                0x0000000109e61fb1 _ZN8parser_t9parse_jobEP9process_tP5job_tP11tokenizer_t + 4961
17  fish                                0x0000000109e630ea _ZN8parser_t8eval_jobEP11tokenizer_t + 868
18  fish                                0x0000000109e63666 _ZN8parser_t4evalERKNSt3__112basic_stringIwNS0_11char_traitsIwEENS0_9allocatorIwEEEERK10io_chain_t12block_type_t + 418
19  fish                                0x0000000109e4c69c _ZL20internal_exec_helperR8parser_tPKw12block_type_tRK10io_chain_t + 1028
20  fish                                0x0000000109e4b154 _Z8exec_jobR8parser_tP5job_t + 3338
21  fish                                0x0000000109e63382 _ZN8parser_t8eval_jobEP11tokenizer_t + 1532
22  fish                                0x0000000109e63666 _ZN8parser_t4evalERKNSt3__112basic_stringIwNS0_11char_traitsIwEENS0_9allocatorIwEEEERK10io_chain_t12block_type_t + 418
23  fish                                0x0000000109e70c49 _Z11reader_readiRK10io_chain_t + 1690
24  fish                                0x0000000109e37d8b _ZL14builtin_sourceR8parser_tPPw + 470
25  fish                                0x0000000109e2deea _Z11builtin_runR8parser_tPKPKwRK10io_chain_t + 403
26  fish                                0x0000000109e4b07f _Z8exec_jobR8parser_tP5job_t + 3125
27  fish                                0x0000000109e63382 _ZN8parser_t8eval_jobEP11tokenizer_t + 1532
28  fish                                0x0000000109e63666 _ZN8parser_t4evalERKNSt3__112basic_stringIwNS0_11char_traitsIwEENS0_9allocatorIwEEEERK10io_chain_t12block_type_t + 418
29  fish                                0x0000000109e97d8a _ZL26source_config_in_directoryRKNSt3__112basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEEE + 118
30  fish                                0x0000000109e97611 main + 2429
31  libdyld.dylib                       0x00007fff8d75a5fd start + 1
fish: Could not connect to universal variable server, already tried manual restart (or no command supplied). You will not be able to share variable values between fish sessions. Is fish properly installed?
fish: function eval called while blocking signals.
fish: This is a bug. Break on bugreport to debug.If you can reproduce it, please send a bug report to fish-users <at> lists.sf.net.
fish: Backtrace:
0   fish                                0x0000000109e86661 _Z15show_stackframev + 94
1   fish                                0x0000000109e6357d _ZN8parser_t4evalERKNSt3__112basic_stringIwNS0_11char_traitsIwEENS0_9allocatorIwEEEERK10io_chain_t12block_type_t + 185
2   fish                                0x0000000109e46706 _ZL11start_fishdv + 358
3   fish                                0x0000000109e7d142 _ZL10get_socketv + 62
4   fish                                0x0000000109e7d4f0 _ZL9reconnectv + 91
5   fish                                0x0000000109e7d3be _Z21env_universal_barrierv + 450
6   fish                                0x0000000109e47b4d _Z14env_export_arrb + 74
7   fish                                0x0000000109e4a9e2 _Z8exec_jobR8parser_tP5job_t + 1432
8   fish                                0x0000000109e63382 _ZN8parser_t8eval_jobEP11tokenizer_t + 1532
9   fish                                0x0000000109e63666 _ZN8parser_t4evalERKNSt3__112basic_stringIwNS0_11char_traitsIwEENS0_9allocatorIwEEEERK10io_chain_t12block_type_t + 418
10  fish                                0x0000000109e4cbba _ZL22exec_subshell_internalRKNSt3__112basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEEEPNS_6vectorIS5_NS3_IS5_EEEEb + 378
11  fish                                0x0000000109e4f1aa _ZL15expand_cmdsubstR8parser_tRKNSt3__112basic_stringIwNS1_11char_traitsIwEENS1_9allocatorIwEEEERNS1_6vectorI12completion_tNS5_ISB_EEEE + 391
12  fish                                0x0000000109e4e18b _Z13expand_stringRKNSt3__112basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEEERNS_6vectorI12completion_tNS3_IS9_EEEEi + 368
13  fish                                0x0000000109e60511 _ZN8parser_t23parse_job_argument_listEP9process_tP5job_tP11tokenizer_tRNSt3__16vectorI12completion_tNS6_9allocatorIS8_EEEEb + 1475
14  fish                                0x0000000109e61fb1 _ZN8parser_t9parse_jobEP9process_tP5job_tP11tokenizer_t + 4961
15  fish                                0x0000000109e630ea _ZN8parser_t8eval_jobEP11tokenizer_t + 868
16  fish                                0x0000000109e63666 _ZN8parser_t4evalERKNSt3__112basic_stringIwNS0_11char_traitsIwEENS0_9allocatorIwEEEERK10io_chain_t12block_type_t + 418
17  fish                                0x0000000109e4c69c _ZL20internal_exec_helperR8parser_tPKw12block_type_tRK10io_chain_t + 1028
18  fish                                0x0000000109e4b154 _Z8exec_jobR8parser_tP5job_t + 3338
19  fish                                0x0000000109e63382 _ZN8parser_t8eval_jobEP11tokenizer_t + 1532
20  fish                                0x0000000109e63666 _ZN8parser_t4evalERKNSt3__112basic_stringIwNS0_11char_traitsIwEENS0_9allocatorIwEEEERK10io_chain_t12block_type_t + 418
21  fish                                0x0000000109e70c49 _Z11reader_readiRK10io_chain_t + 1690
22  fish                                0x0000000109e37d8b _ZL14builtin_sourceR8parser_tPPw + 470
23  fish                                0x0000000109e2deea _Z11builtin_runR8parser_tPKPKwRK10io_chain_t + 403
24  fish                                0x0000000109e4b07f _Z8exec_jobR8parser_tP5job_t + 3125
25  fish                                0x0000000109e63382 _ZN8parser_t8eval_jobEP11tokenizer_t + 1532
26  fish                                0x0000000109e63666 _ZN8parser_t4evalERKNSt3__112basic_stringIwNS0_11char_traitsIwEENS0_9allocatorIwEEEERK10io_chain_t12block_type_t + 418
27  fish                                0x0000000109e97d8a _ZL26source_config_in_directoryRKNSt3__112basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEEE + 118
28  fish                                0x0000000109e97611 main + 2429
29  libdyld.dylib                       0x00007fff8d75a5fd start + 1
30  ???                                 0x0000000000000001 0x0 + 1
fish: Could not connect to universal variable server, already tried manual restart (or no command supplied). You will not be able to share variable values between fish sessions. Is fish properly installed?
------------------------------------------------------------------------------
Want excitement?
Manually upgrade your production database.
When you want reliability, choose Perforce
Perforce version control. Predictably reliable.
http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk
_______________________________________________
Fish-users mailing list
Fish-users@...
https://lists.sourceforge.net/lists/listinfo/fish-users

Fish is totally stuck after messing up fish_config

I was really enjoying getting to know fish. I tried out fish_config, but I closed it wrong. The first time I tried it, I just quit the browser tab and then closed the shell session I had started it from. The second time it started at localhost:8001 instead of :8000, and I hit ctrl-C in the shell where it was running to try to stop it.

And all hell broke loose! Now new fish shells won’t even start. I switched back to bash, but I can’t figure out how to get fish un-stuck. I’ve restarted my machine multiple times, and I even uninstalled fish and then reinstalled.

Help!

Machine info, if it helps: OSX 10.9.4, using iTerm (but same thing happens in Terminal.app)… I’m not sure what else would be helpful. I wrote my own .config/fish/config.fish, but I’ve since commented out the whole thing while using bash. The problem persists.
------------------------------------------------------------------------------
Want excitement?
Manually upgrade your production database.
When you want reliability, choose Perforce
Perforce version control. Predictably reliable.
http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk
_______________________________________________
Fish-users mailing list
Fish-users@...
https://lists.sourceforge.net/lists/listinfo/fish-users
Mandeep Sandhu | 10 Sep 21:02 2014
Picon

Fish not completing some Make targets

Hi All,

I was working on a project which was using makefiles for building a
bunch of stuff.

This Makefile "includes" a lot of other *.make files from other
sub-projects in order to build them.

However, I see thast fish can only do completions for the current
Makefile targets and doesn't seem to go into the sub-project's *.make
files to suggest targets (bash does this).

Is this something that that's possible?

The current fish completion uses '__fish_print_make_targets' to get
the targets. I guess this only looks at Makefile in the current dir?

Is this already done in some fish release? Or should I work on adding it?

Thanks,
-mandeep

------------------------------------------------------------------------------
Want excitement?
Manually upgrade your production database.
When you want reliability, choose Perforce
Perforce version control. Predictably reliable.
http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk
Roman Inflianskas | 6 Sep 10:21 2014
Picon

How to check whether fish shell is able to execute this command/function?

I want to execute a command but I'm not sure that it exists. I know how to check function existence. But how can
I check command existence? I didn't find an option for `test` to do this. The only way I found is:

type COMMAND >/dev/null; and COMMAND $argv

But it's kind of ugly.

--

-- 
Regards, Roman Inflianskas

------------------------------------------------------------------------------
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
Sepp Tannhuber | 28 Aug 13:36 2014
Picon

Fish scripts collection

Sometimes, before I write a shell script, I am looking for an existing one which does 
the job, in order to not reinvent the wheel. I thought it would be a good idea to have a
clearly arranged central collection where every fish user could share fish scripts with
the others. Is there anything like that?

------------------------------------------------------------------------------
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
Martín Cigorraga | 28 Aug 12:39 2014
Picon

How to use a specific locale for a command?

Hi,

On bash I used to prepend any command with LC_ALL=pick_your_locale whenever I wanted the output in this or that language, how do I achieve the same with Fish?

My issue is that I set my locale to Finnish and top, following Finnish conventions shows the load numbers using commas instead dots like 0,01, 0,08, 0,14 instead 0.01, 0.08, 0,14. Problem is it is a bit more complicated to parse this line from tmux when the numbers are represented using commas instead dots ending with a messy result; instead http://i.imgur.com/My5KyPt.png I end up with http://i.imgur.com/Ie4wRca.png (full screenshot: http://i.imgur.com/87rjd6t.png) and that's why I would like to run top with C or en_US locale.

How would be the best way to tackle this in Fish? I could use "bash -c 'LC_ALL=C top'" but I feel that's really, really dirty...

Regards,
-Martin
------------------------------------------------------------------------------
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
Fish-users mailing list
Fish-users@...
https://lists.sourceforge.net/lists/listinfo/fish-users
Andrew Lutomirski | 23 Aug 04:03 2014
Picon

Update website's Fedora instructions?

Fish is fully supported in all current Fedora versions.  A decent link would be:

https://apps.fedoraproject.org/packages/fish

and the text could be "dnf install fish" (or "yum install fish" if you
want to be conservative and boring).

If anyone volunteers to *test* EPEL releases, I can generate those, too.

--Andy

------------------------------------------------------------------------------
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
Sascha Grunert | 24 Aug 01:01 2014
Picon

Upcoming release

Hey there,

When is an upcoming release planned? The current version is a little bit outdated in comparison the Github progress.

Best regards,
Sascha
------------------------------------------------------------------------------
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
Concours Edwin | 22 Aug 18:10 2014
Picon

Cross compiling fish for iOS?

Hello!

I've recently jailbroken my iOS device and found that there wasn't a lot of shell available. Sadly, fish
isn't in those available shells. So I wondered : Is there a way to cross compile Fish for iOS? Does anyone
here achieved it?

The architecture is armv7, but I think there are much more parameters than architecture for cross compiling.

I'm pretty new to cross compilation stuff. So if someone could enlighten me on which tools should be used for
this, I'll be really glad.

Regards
Robin Carlier
------------------------------------------------------------------------------
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
Rickard von Essen | 20 Aug 15:54 2014
Picon

Re: Command substitution and functions

What is strange is that 
$ echo "http://"(vip)
outputs only a new line. I would expect it to at least printout:
http://

// Rickard


On Wed, Aug 20, 2014 at 3:27 PM, Stestagg <stestagg-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
My guess would be something to do with how stdout is being captured/ssh/vagrant weirdness

It might be worth trying adding -T or -t to the ssh command to force/unforce ssh from using pty allocation




On Wed, Aug 20, 2014 at 2:19 PM, Rickard von Essen <rickard.von.essen-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
Hi,

It turns out that is the function creating the url that is not working as I expected. This is the actual code:

function vip
  vagrant ssh $argv[1] -c "ifconfig eth1 | sed -ne 's/.*inet addr:\(\S*\)\s*Bcast.*/\1/p'" \
    ^ /dev/null
end

Using it gives:
$ vip
192.168.233.170

But running:
$ open "http://"(vip)
Usage: open [-e] [-t] [-f] [-W] ...

Any ideas?

// Rickard


On Wed, Aug 20, 2014 at 2:19 PM, Cedric Auger <sedrikov-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
Works perfectly for me:
-----------------------------
Welcome to fish, the friendly interactive shell
Type help for instructions on how to use fish
cauger <at> cauger-PNR ~> function url
                           echo "some url"
                     end
cauger <at> cauger-PNR ~> open (url)/index.html
xdg-open: file 'some url/index.html' does not exist
cauger <at> cauger-PNR ~>
----------------------------
Have you tried to run it in some interactive shell, in a script or somewhere else?



2014-08-20 13:14 GMT+02:00 Rickard von Essen <rickard.von.essen <at> gmail.com>:
Hi,

If i have a function that computes an URL, say:

function url
  echo "some url"
end

Then I want to use it in a command substitution. Something like:

open (url)/index.html

but (url) is expanded to empty string. How should I do this?

Regards
Rickard von Essen


------------------------------------------------------------------------------
Slashdot TV.
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
Fish-users mailing list
Fish-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/fish-users




--
.../Sedrikov\...


------------------------------------------------------------------------------
Slashdot TV.
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
Fish-users mailing list
Fish-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/fish-users



------------------------------------------------------------------------------
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
Fish-users mailing list
Fish-users@...
https://lists.sourceforge.net/lists/listinfo/fish-users
Rickard von Essen | 20 Aug 13:14 2014
Picon

Command substitution and functions

Hi,

If i have a function that computes an URL, say:

function url
  echo "some url"
end

Then I want to use it in a command substitution. Something like:

open (url)/index.html

but (url) is expanded to empty string. How should I do this?

Regards
Rickard von Essen

------------------------------------------------------------------------------
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
Fish-users mailing list
Fish-users@...
https://lists.sourceforge.net/lists/listinfo/fish-users

Gmane