Ticket #2629: mcedit.less.sh

File mcedit.less.sh, 131 bytes (added by keasy, 13 years ago)

script to open stdin data in mcedit

Line 
1#!/bin/sh
2
3if test $1; then
4    mcedit "$@"
5else
6    TEMP=`mktemp`
7    cat /dev/stdin > $TEMP
8    mcedit $TEMP < /dev/tty
9fi
10exit
11