On Mon, Aug 3, 2015, at 04:07 AM, Cedric Auger wrote:
> ​That is because it is expanded as:
> 
> > bzgrep -H text1 text2 [found_file]
> 
> (That is: search "text1" in files text2 and [found_file])
> 
> While you wanted is expanded as:
> 
> > bzgrep -H "text1 text2" [found_file]
> 
> I guess it is the reason why you have the double quotes surrounding $*.
> 
> I am not fish expert, so I do not know if restoring the double quotes
> will
> solve your problem.
> Still I find it a not so good idea not to explicitely put your double
> quotes. Indeed, this removes the abilitiy to pass options as arguments to
> your command.
> And it makes your gbz command have a different behaviour than most common
> Unix commands.
> 
> With the command someone provided, you would type:
> > gbz "text1 text2"
> -or equivalently-
> > gbz text1\ text2
> which seems saner to me.

I agree whole-heartedly.

-- 
http://www.fastmail.com - The way an email service should be


------------------------------------------------------------------------------
_______________________________________________
Fish-users mailing list
Fish-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fish-users

Reply via email to