bug-bash
[Top][All Lists]
Advanced

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

Re: [BUG] Quoted per-cent. sign as literal part of command name


From: Chet Ramey
Subject: Re: [BUG] Quoted per-cent. sign as literal part of command name
Date: Fri, 22 Jul 2016 08:14:11 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0) Gecko/20100101 Thunderbird/45.2.0

On 7/21/16 11:54 PM, Ryan Cunningham wrote:

> Bash Version: 4.3
> Patch Level: 42
> Release Status: release
> 
> Description:
>       When BASH finds a per-cent. sign ('%') as the first character of a
>       command after quote expansion, such a per-cent. sign is normally
>       treated as beginning the identifier of a job to take into the fore-
>       ground (or into the background, if the identifier is followed by an
>       ampersand ['&']).
> 
>       Contrary to current behavior, this should not happen if BASH en-
>       counters the per-cent. sign preceded by a backslash ('\') or enclosed
>       within quotation marks ("'...'").

The current behavior is as intended, and has always worked as it does
now.  The `%job' notation is not part of the shell language, and the `%'
is not an operator.  It is closer to a simple command.  As such, quoting
does not disable any special meaning.

Chet
-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    chet@case.edu    http://cnswww.cns.cwru.edu/~chet/



reply via email to

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