On 2013-11-21 13:42, Marcin Zajączkowski wrote: > Hello again, > > I have one more issue when working with stdin in fish. Is it possible to > (easily) read from stdin/pipe more than one line? > > I would like to be able to do: > cat myfile | myscript > (where in myscript a content of a file is read and pass (for example) to > a clipboard) > > In bash I have seen a weird construction "input="$(< /dev/stdin)". In > fish I would probably `read` a line by line in a loop and concatenate > the content of a variable, but maybe there is a simpler way?
As a summary. I ended with calling read in a loop. I reported the issue #1147 and later got know about #159 which applies to my case. https://github.com/fish-shell/fish-shell/issues/1147 https://github.com/fish-shell/fish-shell/issues/159 Marcin ------------------------------------------------------------------------------ Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk _______________________________________________ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users