bug-bash
[Top][All Lists]
Advanced

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

Re: escaping


From: Chris F.A. Johnson
Subject: Re: escaping
Date: Wed, 03 Oct 2001 17:43:32 GMT

On Wed, 3 Oct 2001, leo wrote:

> simple problem, but a basic problem nonetheless
>
> consider
>
> echo \z #backslash is a special character to the shell, so it is not printed
> result: z
> echo "\z" #when using double quotes, every special character is turned off
> except variable and argument substitution ($), backticks and backslash.
> why does the last statement output: \z instead of (what i expected) the same
> as the former command (a single z)???

>From "man bash":

        The backslash retains its special meaning only when followed by
        one of the following characters: $, `, ", \, or <newline>.

-- 
        Chris F.A. Johnson          address@hidden
        =================================================================
        address@hidden      http://cfaj.freeshell.org
        address@hidden      http://members.home.net/c.f.a.johnson



reply via email to

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