summary refs log tree commit diff
path: root/contrib/menter
blob: f00a92e798e63fd63ae56783fc976726a05a248e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh -e
# menter [MSG] - run subshell in temporary directory with MSG extracted

[ "$#" -eq 0 ] && set -- :

dir=$(mktemp -d -t menter.XXXXXX)
cd "$dir"
mshow -t "$1"
mshow -x "$1" 2>/dev/null
ls -l
ln -s "$(mseq "$1")" msg
"${SHELL:-/bin/sh}" || true
echo rm -r "$dir"
rm -r "$dir"