bug-bash
[Top][All Lists]
Advanced

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

Re: Bash-4.3 Official Patch 30


From: Chet Ramey
Subject: Re: Bash-4.3 Official Patch 30
Date: Mon, 06 Oct 2014 07:43:42 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:24.0) Gecko/20100101 Thunderbird/24.6.0

On 10/6/14, 1:35 AM, tsugutomo.enami@jp.sony.com wrote:
> Hi,
> 
>> + char *
>> + parser_remaining_input ()
>> + {
>> +   if (shell_input_line == 0)
>> +     return 0;
>> +   if (shell_input_line_index < 0 || shell_input_line_index >= 
>> shell_input_line_len)
>> +     return '\0';   /* XXX */
> 
> Do you mean return ""; ?

Yes, good catch.  It doesn't make a difference: clang and gcc both accept
it as written and it behaves as desired.  However, I'll change it for the
next version.

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]