bug-bash
[Top][All Lists]
Advanced

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

Re: command substitution fails with PS1 and multiline in one case


From: Chet Ramey
Subject: Re: command substitution fails with PS1 and multiline in one case
Date: Mon, 04 Aug 2014 15:57:13 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:24.0) Gecko/20100101 Thunderbird/24.6.0

On 8/2/14, 7:27 PM, EmanueL Czirai wrote:

> Repeat-By:
> 1. start a bash shell
> 2. put this in .bashrc
> 
> PS1='$(date)\
> '
> 
> put no spaces after \
> the entire thing is 2 lines - may add new line after ' though, and prior to 
> PS1
> 
> 3. start a new bash
> the error is:
> bash: command substitution: line 1: syntax error near `date)'
> bash: command substitution: line 1: `date)'
> exit
> and the new bash exited

Thanks for the report.  This will be fixed in the next release of bash.

Chet

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



reply via email to

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