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

Chet Ramey chet.ramey at case.edu
Tue Jul 11 06:16:58 PDT 2023


On 7/10/23 5:57 PM, enh wrote:
> 

>      > iirc we even _tried_ -1/ENOSYS to test the predictions that (a) most c
>      > programmers don't check for failures (b) even those that do don't log
>      > enough to be able to debug these problems
> 
>     It penalizes those who do.
> 
> 
> yeah, but we optimize for the common case.

I think we've determined that I am not a conventional android developer. :-)

> again, if you're an _application_ things are very different --- it's a 
> reasonable assumption that iOS and Android are your two main targets, and 
> i'm sure there's plenty of stuff you can't do on iOS for security reasons 
> too. you just don't see that because you wouldn't be able to run bash on 
> iOS in the first place :-)

I've been told that iOS, being a macOS derivative, has bash down deep,
but I've never verified that (and have no real desire to).

>     Oh, come on, really? What's next? Adding checks in the str* functions
>     for NULL pointers? I am sure that catering to bad programming is not the
>     way to improve programming practices.
> 
> 
> no, because there's no causal link with an earlier failure there. 

There is, if you ignore memory allocation failures. But I don't know how
prevalent that is.


> but, again, that's aimed at apps.

Yep, bash is definitely a unicorn here.

Chet
-- 
``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