nixers
RC scripts to acme-ify Perl/Python execution output - Printable Version
+- nixers (https://nixers.net)
+-- Forum: Development & Graphics (https://nixers.net/Forum-Development-Graphics)
+--- Forum: Programming On Unix (https://nixers.net/Forum-Programming-On-Unix)
+--- Thread: RC scripts to acme-ify Perl/Python execution output (/Thread-RC-scripts-to-acme-ify-Perl-Python-execution-output)


RC scripts to acme-ify Perl/Python execution output - Tanami - 19-06-2013

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]



RE: RC scripts to acme-ify Perl/Python execution output - yrmt - 19-06-2013

We should have a Plan 9 subforum.


RE: RC scripts to acme-ify Perl/Python execution output - Tanami - 20-06-2013

(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


RE: RC scripts to acme-ify Perl/Python execution output - yrmt - 20-06-2013


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