RC scripts to acme-ify Perl/Python execution output - General Shell Scripting
Tanami
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
We should have a Plan 9 subforum.
Tanami
(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

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




Members  |  Stats  |  Night Mode