On Tue, May 5, 2015 at 3:01 PM, Siteshwar <sitesh...@gmail.com> wrote: > Hello Aleksey, > > Thanks for trying fish. > > On Tue, May 5, 2015 at 4:31 PM, Aleksey Midenkov <midenok+f...@gmail.com> > wrote: >> >> > help for >> >> It opened browser window... I don't need browser, I need quick and >> easy way to access basic syntax what does inline help in bash. It's >> console app after all! >> >> > man for >> >> Not really good: the default PAGER is 'less' which doesn't fully >> comply with 'quick and easy'. Well, if to trim NAME section and quick >> description ('for - perform a set of commands multiple times.') and >> output with 'cat' it will be almost like 'help' in bash, but: >> >> > PAGER=cat man for >> fish: Unknown command 'PAGER=cat'. Did you mean to run man with a >> modified environment? Try 'env PAGER=cat man…'. See >> the help section on the set command by typing 'help set'. >> >> I recall, that I've read something about "fish doesn't like >> subshells". Well, it's good to set variables inside pipes: I like >> that! But, here I want quick and easy way to use temporary settings. >> Ok, let's try what error said: >> >> > env PAGER=cat man for >> No manual entry for for >> >> >> OMG, what was that?? It set PAGER and forgot all other variables? I >> guess, it executed '/usr/bin/env' which is not related to any shell >> and behaves how it wants, thus not a good method. I just want a >> subshell here with a quick and concise: >> >> > PAGER=cat man for >> >> And it is kind of cumbersome to add 'env' here (even if it worked)... > > > It's rather simple. Just type 'for' and press enter to see help text .
Seriously? Making errors just to get inline help is not the right way to do it. It will not work for all commands (f.ex. 'set' and 'echo'). Moreover, I don't need inline help every time I make real mistake, obviously... I see, that command built-ins have '--help' option. This is not unified way: 1. no '--help' for syntactic statements like 'for', 'if'. 2. With '--help' there is no clarity that this is sure built-in When I type 'help COMMAND' I am sure that this is help about built-in. When I type 'COMMAND --help' I'm not sure if this is built-in or not (maybe there is no such built-in and this is help about executable util). > >> >> Btw, if someone is interested, I decided to look at 'fish' because of >> course 'bash' scripting is horrible! And the fact that 'fish' supports >> var-change hooks was a signal to start examining it. But such basic >> and simple failures give wa-ay too much no-go. The interactivity of >> 'fish' is not really good. Well, by interactivity I don't mean all >> these traffic-light colors and popping stuff (which frankly don't add >> good impression) but simply 'what you type and what you get'... > > > Let us know if you have any suggestions to improve fish. I already did. As was said, it would be good to have 'VAR=x COMMAND' syntax to define temporary variables just for one command. Secondly, it would be good to have 'help COMMAND' to get inline help on topic, not in browser, not in man page, just on STDOUT. And thirdly, no need (and in fact is nagging) to get inline help on every error. If isn't yet, there should be an option to turn it off. > >> >> >> >> ------------------------------------------------------------------------------ >> One dashboard for servers and applications across Physical-Virtual-Cloud >> Widest out-of-the-box monitoring support with 50+ applications >> Performance metrics, stats and reports that give you Actionable Insights >> Deep dive visibility with transaction tracing using APM Insight. >> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y >> _______________________________________________ >> Fish-users mailing list >> Fish-users@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/fish-users > > > > > -- > Regards, > Siteshwar ------------------------------------------------------------------------------ One dashboard for servers and applications across Physical-Virtual-Cloud Widest out-of-the-box monitoring support with 50+ applications Performance metrics, stats and reports that give you Actionable Insights Deep dive visibility with transaction tracing using APM Insight. http://ad.doubleclick.net/ddm/clk/290420510;117567292;y _______________________________________________ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users