nkkav / libpnmio

C library for reading and writing PNM (PBM/PGM/PPM) and PFM images.
Other
19 stars 9 forks source link

doset : illegal number #2

Closed adammaj1 closed 4 years ago

adammaj1 commented 4 years ago

Hi, I have compiled without problems :

a@zelman:~/libpnmio$ cd src
a@zelman:~/libpnmio/src$ make clean
rm -f *.o ../lib/libpnmio.a ../bin/randimg.exe ../bin/doset.exe ../bin/rnwimg.exe ../bin/sftbyvec.exe
a@zelman:~/libpnmio/src$ make
gcc -std=c99 -g -Wall -Wextra -pedantic -c pnmio.c 
ar -q libpnmio.a pnmio.o
ar: tworzenie libpnmio.a
chmod 755 libpnmio.a
ranlib libpnmio.a
rm -rf ../lib
mkdir ../lib
rm -rf ../bin
mkdir ../bin
cp -f libpnmio.a ../lib
rm -f libpnmio.a
gcc -std=c99 -g -Wall -Wextra -pedantic  -c randimg.c
gcc randimg.o ../lib/libpnmio.a  -o randimg.exe
mv randimg.exe ../bin/randimg.exe
gcc -std=c99 -g -Wall -Wextra -pedantic  -c doset.c
gcc doset.o ../lib/libpnmio.a  -o doset.exe
mv doset.exe ../bin/doset.exe
gcc -std=c99 -g -Wall -Wextra -pedantic  -c rnwimg.c
gcc rnwimg.o ../lib/libpnmio.a  -o rnwimg.exe
mv rnwimg.exe ../bin/rnwimg.exe
gcc -std=c99 -g -Wall -Wextra -pedantic  -c sftbyvec.c
gcc sftbyvec.o ../lib/libpnmio.a  -o sftbyvec.exe
mv sftbyvec.exe ../bin
a@zelman:~/libpnmio/src$ cd ..
a@zelman:~/libpnmio$ cd test
a@zelman:~/libpnmio/test$ ./run-doset.sh
./run-doset.sh: 10: [: Illegal number: 
This script has been running for  seconds.

Is it OK ?

nkkav commented 4 years ago

It is harmless for the particular scripts but it is not OK. I will push a fix later today. Thanks for reporting.