[Toybox] [PATCH] Fix a couple of shell tests.

Rob Landley rob at landley.net
Fri Mar 6 16:09:59 PST 2020


On 2/28/20 4:24 PM, enh via Toybox wrote:
> These didn't work on a system where readlink is a symlink to toybox,
> ironically.

Hmmm. What I'm trying to do is distinguish /proc/self/exe points to the shell
and /proc/self/exe points to the command that's running. (Which is kinda hard to
do when toybox is providing everything. And I don't want to depend on the test
system having a C compiler. And I don't want to ship arch-specific binaries for
every possible target. And #! scripts don't help because that points to the
interpreter...)

I have to copy the readlink binary to a new inode, don't I?

Rob



More information about the Toybox mailing list