On Tue, 13 Aug 2013, Azeem Arshad wrote: > I noticed this in the way comment lines are treated in fish > > fish > ----- > z33m@z33m-asus ~> echo hello#world > hello > z33m@z33m-asus ~> echo hello #world > hello > > bash > ------- > [z33m@z33m-asus ~]$ echo hello#world > hello#world > [z33m@z33m-asus ~]$ echo hello #world > hello > > I am guessing that bash requires a new token starting with # to begin a > comment line, while fish also treats # in between tokens as comment line > start. > > I came across this when i was using bower commandline tool. which accepts > arguments of the form <packagename>#<version>. This command works in bash > but fails in fish, i have to quote the argument to get this working. > > Is this behavior a bug, or is this intentional?
This has just come up on the issue tracker: https://github.com/fish-shell/fish-shell/issues/953 I don't think the behaviour is necessarily a bug, but it does kind of suck; I wouldn't be averse to forcing comments to begin with ' #' unless they are at the beginning of the line. David Adam fish committer zanc...@ucc.gu.uwa.edu.au ------------------------------------------------------------------------------ Get 100% visibility into Java/.NET code with AppDynamics Lite! It's a free troubleshooting tool designed for production. Get down to code-level detail for bottlenecks, with <2% overhead. Download for free and get started troubleshooting in minutes. http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk _______________________________________________ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users