about summary refs log tree commit diff
path: root/mcolor
diff options
context:
space:
mode:
authorChristian Neukirchen <chneukirchen@gmail.com>2016-09-05 14:17:11 +0200
committerChristian Neukirchen <chneukirchen@gmail.com>2016-09-05 14:17:11 +0200
commit3167a7a2d35173414fa1b333db4908ac140c1c4d (patch)
tree013186cfb4218fa88fa4068a850f25f0f1de1dbe /mcolor
parent19405f51b440389127909317b4d6766939d00b1d (diff)
downloadmblaze-3167a7a2d35173414fa1b333db4908ac140c1c4d.tar.gz
mblaze-3167a7a2d35173414fa1b333db4908ac140c1c4d.tar.xz
mblaze-3167a7a2d35173414fa1b333db4908ac140c1c4d.zip
mcolor: use awk in shebang
This is reasonably portable, and easy to fix if not.
The current hack breaks on OpenBSD.
Diffstat (limited to 'mcolor')
-rwxr-xr-xmcolor5
1 files changed, 1 insertions, 4 deletions
diff --git a/mcolor b/mcolor
index 5a60adf..6ef43e1 100755
--- a/mcolor
+++ b/mcolor
@@ -1,9 +1,6 @@
-#!/bin/sh
+#!/usr/bin/awk -f
 # mcolor - colorize rendered mail
 
-# restart as awk script
-true + /; exec awk -f "$0"; exit; / {}
-
 function co(n, c) { e = ENVIRON["MCOLOR_" n]; return e ? e : c }
 function fg(c, s) { return sprintf("\033[38;5;%03dm%s\033[0m", c, s) }
 function so(s) { return sprintf("\033[1m%s\033[0m", s) }