On 09/26/2014 06:05 AM, Greg Wooledge wrote: > HP-UX 10.20 (which is from 1994, and was end-of-lifed many years ago) > only has a Bourne shell in /usr/old/bin/sh. It's not used in normal > operations. The /bin/sh on HP-UX is basically a stripped-down ksh. > > Unfortunately it's a bit tricky to test whether the Bourne shell would > dump core on a malformed environment variable, because /usr/bin/env > refuses to put such a thing into the environment: > > imadev:~$ env 'name()=() {' /usr/old/bin/sh -c 'echo hello' > name()=() {: is not an identifier > > I'm not in the mood to write a C program to work around that.
GNU coreutils can be installed on HP-UX, and its 'env' can put such a thing into the environment. Or writing such a C program is rather simple. But I don't blame you for not worrying about it - it's a museum system, and we should be worried more about modern systems at this point in time. -- Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature