[Toybox] [PATCH] sh: pass "\" to the later app

Chet Ramey chet.ramey at case.edu
Sat Jul 1 07:40:46 PDT 2023


On 6/30/23 8:57 PM, Rob Landley wrote:
>> On 6/12/23 19:40, Chet Ramey wrote:
>>> I wish you were not so reluctant. Look at how many things you've discovered
>>> that I decided were bugs based on our discussions.
>>
>> But since you asked, today's new question I wrestled with was
> 
> Why does eval "" clear $? when a normal newline doesn't, and it's passed into
> and out of eval otherwise?

"If there are no arguments, or only null arguments, eval shall return a 
zero exit status"

https://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_19

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



More information about the Toybox mailing list