dspinellis/pmonitor

Unterminated quoted string on Line 59

Opened this issue · 1 comments

I'm getting the following error for all invocations of pmonitor.sh (including test-pmonitor.sh):

/bin/sh: 1: Syntax error: Unterminated quoted string

I've isolated the problem to line 59

"ls -l '\''" fname "'\'' 2>/dev/null" | getline

This is probably a mawk version compatibility issue; I had the same problem as #7 but the fix there seemed to work for me.

Environment

$ lsb_release -ds
Ubuntu 18.04.2 LTS
$ awk -W version
mawk 1.3.3 Nov 1996, Copyright (C) Michael D. Brennan

compiled limits:
max NF             32767
sprintf buffer      1020

I tried using gawk, and it didn't output an error message, but it still failed the test:

$ ./test-pmonitor.sh
FAIL pmonitor: expected 50, got ''
$ gawk -W version | head -n1
GNU Awk 4.1.4, API: 1.1 (GNU MPFR 4.0.1, GNU MP 6.1.2)