emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Add shell-quasiquote.


From: Eli Zaretskii
Subject: Re: [PATCH] Add shell-quasiquote.
Date: Sat, 17 Oct 2015 19:53:49 +0300

> From: address@hidden (Taylan Ulrich Bayırlı/Kammer)
> Date: Sat, 17 Oct 2015 18:33:01 +0200
> 
> >From acd5cfc5fc57a07cccf233021c23db53cfa24ca7 Mon Sep 17 00:00:00 2001
> From: =?UTF-8?q?Taylan=20Ulrich=20Bay=C4=B1rl=C4=B1/Kammer?=
>  <address@hidden>
> Date: Sat, 17 Oct 2015 18:32:22 +0200
> Subject: [PATCH] Add shell-quasiquote.

Thanks.

> +;;; Like `shell-quote-argument', but much simpler in implementation.
> +(defun shqq--quote-string (string)
> +  (concat "'" (replace-regexp-in-string "'" "'\\\\''" string) "'"))

It might be simpler, but it's wrong, because the result is only
correct for Posix shells.

Please do use shell-quote-argument instead.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]