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

Re: noquote for quotes as in noglob for filename generation?



Mikael Magnusson wrote:
> 2009/10/11 Dražen Kačar <dave@xxxxxxxxxxxxxx>:

> > The minimal quoting syntax I managed to find in zsh is:
> >
> >   setopt rc_quotes
> >   sql_execute 'select * from foo where id=''bar'';'
> >
> > That's a bit more readable than id=\'bar\' but still requires quoting.
> 
> Or you can just use double quotes instead.
> sql "select * from foo where id = 'bar';"

That's a problem with some databases. Oracle, for example, has a bunch of 
views whose names start with "v$" and double quotes would want to expand
that.

-- 
 .-.   .-.    Yes, I am an agent of Satan, but my duties are largely
(_  \ /  _)   ceremonial.
     |
     |        dave@xxxxxxxxxxxxxx



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