zsh-users
 help / color / mirror / code / Atom feed
* egrep --color=always 'zsh\.'
@ 2024-04-02 16:33 Ray Andrews
  2024-04-02 20:14 ` Lawrence Velázquez
  0 siblings, 1 reply; 10+ messages in thread
From: Ray Andrews @ 2024-04-02 16:33 UTC (permalink / raw)
  To: Zsh Users

[-- Attachment #1: Type: text/plain, Size: 724 bytes --]

     % apt-file search zsh. | egrep --color=always 'zsh\.'

... if using egrep, the above makes sure that the dot is taken 
literally.  I have a function that ends up trying to create the above:

     % func 'zsh\.'

... which will attempt:

     apt-file search "$1" | egrep --color=always $1

... and it works fine unless I want to force a literal char, as above.  
zsh is removing the quotes as she properly does, but in this case I need 
to preserve them since egrep needs them.  I know I've done this before.  
Something in the (Q) continuum?  It has to be egrep since I normally 
want the regex interpretation, it's just this odd case where I need a 
regex char forced literal.   I know it's doable.




[-- Attachment #2: Type: text/html, Size: 1167 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2024-04-03 12:51 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-02 16:33 egrep --color=always 'zsh\.' Ray Andrews
2024-04-02 20:14 ` Lawrence Velázquez
2024-04-02 20:53   ` Ray Andrews
2024-04-02 22:45     ` Lawrence Velázquez
2024-04-02 22:55       ` Bart Schaefer
2024-04-02 23:29         ` Ray Andrews
2024-04-03  8:18         ` Lawrence Velázquez
2024-04-02 23:26       ` Ray Andrews
2024-04-03  3:42   ` Mark J. Reed
2024-04-03 12:50     ` Ray Andrews

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).