diff --git a/cli.sh b/cli.sh index 1c6b6e6..4884666 100644 --- a/cli.sh +++ b/cli.sh @@ -30,7 +30,17 @@ shesc() { } preproc() { - awk 'NR == 1 && /^#!/ { next } 1' # ignore shebang + awk ' + # replace shebang with a placeholder + # to align line numbers after preprocessing + NR == 1 && /^#!/ { + print "<% -%>" + next + } + { + print + } + ' } sh=/bin/sh