[9fans] inequality testing in shell

2015-06-14 Thread Neven Sajko
Why doesn't the plan9 test program have features for checking inequalities (i.e. greater than etc.)? What do you guys do when you want to test for inequality? Maybe the most convenient way to do that in the shell would be if I made two tiny programs, lt gt which would check their two arguments.

Re: [9fans] inequality testing in shell

2015-06-14 Thread Kurt H Maier
Quoting Neven Sajko nsa...@gmail.com: Why doesn't the plan9 test program have features for checking inequalities (i.e. greater than etc.)? What do you guys do when you want to test for inequality? I use test(1) which does, in fact, support these features, as described in the man page. khm

Re: [9fans] inequality testing in shell

2015-06-14 Thread Steve Simon
It would be easy to extend test to add these features, you could submit a patch if you feel strongly. To be honest I have never had the need for inequalaties, perhaps I have been lucky. -Steve

[9fans] drawterm source?

2015-06-14 Thread Steve Simon
Where is the one true source of drawterm for windows? /sys/src/cmd/unix/drawterm ? swtch.com? elsewhere? -Steve

Re: [9fans] inequality testing in shell

2015-06-14 Thread Steve Simon
Oops :) Sorry, I didn't notice that there under the -eq entry. ditto :-( As I said, never used em. -Steve

Re: [9fans] inequality testing in shell

2015-06-14 Thread sl
TEST(1) TEST(1) NAME test - set status according to condition SYNOPSIS test expr DESCRIPTION Test evaluates the expression expr. If the value is true the exit status is null; otherwise

Re: [9fans] inequality testing in shell

2015-06-14 Thread Neven Sajko
Any of the comparisons -ne, -gt, -ge, -lt, or -le may be used in place of -eq. Oops :) Sorry, I didn't notice that there under the -eq entry. Thanks

Re: [9fans] drawterm source?

2015-06-14 Thread Skip Tavakkolian
https://github.com/0intro/drawterm On Sun, Jun 14, 2015 at 4:32 PM, Steve Simon st...@quintile.net wrote: Where is the one true source of drawterm for windows? /sys/src/cmd/unix/drawterm ? swtch.com? elsewhere? -Steve