Fix tests on MacOS.
This comes down to the lack of a 'seq' command (what?!) and the fact that BSD "wc -l" returns extra whitespace, while the GNU version doesn't. We should be using numeric comparisons instead of string comparisons, and then it's ok.
This commit is contained in:
parent
d21e6612e2
commit
8f9453a55d
12 changed files with 23 additions and 17 deletions
6
t/curse/seq
Executable file
6
t/curse/seq
Executable file
|
|
@ -0,0 +1,6 @@
|
|||
#!/bin/sh
|
||||
i=0
|
||||
while [ "$i" -lt "$1" ]; do
|
||||
i=$(($i + 1))
|
||||
echo $i
|
||||
done
|
||||
Loading…
Add table
Add a link
Reference in a new issue