Svante Signell, on lun. 25 sept. 2017 17:51:52 +0200, wrote:
> However child_lookup() expects a const char *, but the compiler does not
> complain here.

Sure, you can pass a char* to a function that expects a const char*.

> The following tests still reveal unwanted behaviour: (where to change ?) I 
> have
> not tested any new scripts.

It's in the PATH lookup case, just below where you added your code. It
indeed have to cope with the case where elements in $PATH are relative
paths (even if that's really not good practice to have e.g. "." in one's
own $PATH)

Samuel

Reply via email to