[TUHS] /bin/true (was basic tools / Universal Unix)

Dave Horsfall dave at horsfall.org
Sun Oct 22 14:18:33 AEST 2017


On Thu, 19 Oct 2017, Kurt H Maier wrote:

> It's still useful.  Minimal example:
>
> [khm at pc ~]$ (exec cd /); echo $?
> 0
> [khm at pc ~]$ (exec cd /nosuchpath); echo $?
> /usr/bin/cd: line 2: cd: /nosuchpath: No such file or directory
> 1

And others pointed out the same thing; OK, it's obscure (because "test -x 
{}" doesn't quite fit the bill) but I'm convinced.

-- 
Dave Horsfall DTM (VK2KFU)  "Those who don't understand security will suffer."


More information about the TUHS mailing list