mirror of
https://github.com/leahneukirchen/mblaze
synced 2024-11-11 13:10:32 +00:00
15 lines
288 B
Plaintext
15 lines
288 B
Plaintext
|
#!/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"
|