📅  最后修改于: 2022-03-11 14:51:09.911000             🧑  作者: Mango
#!/bin/sh
if cp "$1" "$1.bak"
then
vi "$1"
exit # USE STATUS FROM vi
else
echo "bkedit quitting: can't make backup?" 1>&2
exit 1
fi