Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: greps pipes and eval bad patterns



On 10/26/2015 07:30 AM, Bart Schaefer wrote:
On Oct 26,  6:36am, Ray Andrews wrote:
}
} Question: Why can't we have nothing on the right side?

Because then you have an incomplete command, syntax-wise.  You can write

     echo the command starts here |
	sed s/start/end/


I see, the interpreter would continue on the next line. Yeah, that's a necessary thing without the mandatory ';' as in C. The one exception that I can think of, as we've discussed, is that you can't:

echo true
&& next_command

... which is too bad.



Messages sorted by: Reverse Date, Date, Thread, Author