[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: Patch for Tsocks unifying the platform independent patchesrequired for TOR
-----BEGIN PGP SIGNED MESSAGE-----
> On Fri, 2006-11-24 at 04:08, Ruben Garcia wrote:
>> Would something like
>> if [uname|grep BSD]
>> /* bsd related configure options */
>> /* General options */
>> Please test the uname in a bsd, and post the correct invocation.
> On OpenBSD 3.9 and 3.4 uname without options prints:
> Your little script does not work on either 3.9 or 3.4. The following
> modification works on both.
> if uname|grep BSD
> echo "BSD"
> echo "NOT"
> On 3.4 the default root shell was csh. Sometime between 3.4 and 3.9 it
> changed to ksh, but with both, without the "then" you get a syntax
> error, and with the brackets uname cannot be found. I don't remember
> the default user shell was as I always set mine to ksh. The scripts
> work the same under bash on CentOS/Red Hat Enterprise Linux 3.4. The
> above also worked printing NOT, or Linux if BSD was changed to Linux.
> They get the same errors without the then or with the [ ] brackets.
> George Shaffer
Thanks! I'll start the merge this weekend. Sorry about the brackets, I
don't usually program bash and always have to look the syntax up. It was
meant only as an example of what I wanted to do.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v184.108.40.206 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----