bug-bash
[Top][All Lists]
Advanced

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

Re: how to escape single quote?


From: ali hagigat
Subject: Re: how to escape single quote?
Date: Wed, 29 Dec 2010 14:14:49 +0330

Dennis,

Nice. Much appreciated
What logic is it using you think when we use echo 'ppp'\''qqq'?
Why echo 'ppp\'qqq' is not OK? It can not escape single quote by \ !

On Wed, Dec 29, 2010 at 1:11 PM, Dennis Williamson
<address@hidden> wrote:
> On Wed, Dec 29, 2010 at 1:28 AM, ali hagigat <address@hidden> wrote:
>> I wonder if anybody knows how to escape a single quote character by
>> /bin/sh or bash?
>> echo 'ppp\'qqq''
>> ppp\qqq
>> Please look at the above example and the result.
>> Regards
>>
>>
>
> echo "ppp'qqq"
>
> or
>
> echo 'ppp'\''qqq'
>
>



reply via email to

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