bug-bash
[Top][All Lists]
Advanced

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

Re: Bad substitution when pressing [TAB]


From: Chet Ramey
Subject: Re: Bad substitution when pressing [TAB]
Date: Wed, 28 Sep 2016 08:59:53 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0) Gecko/20100101 Thunderbird/45.3.0

On 9/27/16 4:46 PM, Valentin Bajrami wrote:
> HI,
> 
> While I was testing some variable substitution I came across this error /
> unwanted behavior. 
> 
> So for example:
> 
> $ printf '%s' "${/debash: ${/: bad substitution
> bash: ${/: bad substitution

I can imagine that it's unwanted behavior.  It happens because the word
expansion is incomplete, and the code completion uses is the usual
expansion code, which expects the word to be well-formed.  I'll take a
look.

Chet

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



reply via email to

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