RC scripts to acme-ify Perl/Python execution output - Programming On Unix

Users browsing this thread: 1 Guest(s)
Tanami
Members
if you use the editor acme you may find these two scripts useful:

Code:
#!/bin/rc
# aperl:
# Executes perl command and alters stderr to produce Acme-friendly error messages
# Created 02-JUL-1996, Luther Huffman,  lutherh@stratcom.com
/usr/bin/perl $* |[2]  /usr/bin/perl -pe 's/ line (\d+)/:$1 /'  >[1=2]
Code:
#!/bin/rc
# apython
# python mod of aperl by Tanami
/usr/bin/python3.3 $* |[2]  /usr/bin/perl -pe 's/File \"(.+)\"\, line (\d+),? ?/Error in $1:$2 /'  >[1=2]


Messages In This Thread
RC scripts to acme-ify Perl/Python execution output - by Tanami - 19-06-2013, 10:48 AM