Re: [PATCH] dejagnu(1) and shell scripts (was: Catch errors properly, if whoami or who don't exist)
Jacob Bachmeyer <[email protected]> Wed, 18 Sep 2024 21:37:36 -0500
| Newsgroups | gmane.comp.sysutils.dejagnu.general |
|---|---|
| Message-ID | <[email protected]> |
Stefan wrote: > [...] > > By the way, I need another patch, as /bin is not existing in my case. > I'm actually a bit wondering why all tools like awk, expect, tcl have > a fallback without a path just to their executable name, but sh needs > a fallback to /bin/sh. But anyway, this is a common problem packaging > software for Guix and not a problem of DejaGnu. A different approach has been taken as of commit 713ce9a1618961cbf9492cbc0023d07f0b83df95: the dejagnu(1) launcher now first walks the PATH returned by `getconf PATH` (and then the user's $PATH) for an "sh" in search of a POSIX shell. A similar strategy finds /usr/xpg4/bin/awk on Solaris 10, which is the POSIX Awk on that system, so this should allow the command scripts, but not the launcher itself, to assume a POSIX shell. Does this also fix your problem? -- Jacob