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?

Thanks
------------------------------------------------------------------------------
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

Reply via email to