PSV in Shell Scripts - Continuation Lines

Normally, any line that begins with a | is formatted as a table row, while all other lines are left unchanged.

However, consider this shell script:

#!/bin/sh psv <<EO_TABLE | one | two | backslash in table | \ | three | four EO_TABLE ls \ | grep xyz \ | sort \ | tail

It may be a contrived example, but as of psv v0.4.35, the trailing \ of a non-table line prevents the following line from being table-ised.

Try formatting the table above.

  • the table for the psv command should be reformatted
  • but the ls | grep | ... pipeline should not be