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]
yrmt
Grey Hair Nixers
We should have a Plan 9 subforum.
Tanami
Members
(19-06-2013, 07:10 PM)NeoTerra Wrote:
(19-06-2013, 04:13 PM)Beastie Wrote:

Why don't we just convert the BSD forum to a general Unix forum?

that sounds sensible although plan 9 is not really unix, perhaps just a general OS subforum? then we could fit in the Haiku users too
yrmt
Grey Hair Nixers

Plan 9 is not unix. And yeah we could make an 'Other OS' sub.