Package: fio Severity: important Tags: patch Hello,
When I launch fio_generate_plots on a system where gnuplot is not installed I get this error : $ fio_generate_plots test Making bw logs /usr/bin/fio_generate_plots: 42: /usr/bin/fio_generate_plots: -: not found That's because the test checking whether gnuplot is installed is failing because of an empty variable : GNUPLOT=$(which gnuplot) if [ ! -x $GNUPLOT ]; then echo You need gnuplot installed to generate graphs exit 1 fi Indeed the command "test -x" is exiting with code 0. To correct this we should enclose the variable with quotes : if [ ! -x "$GNUPLOT" ]; then Then the script is going into the test properly : $ fio_generate_plots test You need gnuplot installed to generate graphs -- System Information: Debian Release: 7.0 APT prefers testing APT policy: (500, 'testing') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 3.2.0-4-amd64 (SMP w/4 CPU cores) Locale: LANG=fr_FR.utf8, LC_CTYPE=fr_FR.utf8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org