# Make sure that the basic `svms unedit' command works:
rm -rf unedit_basic
svms new -R unedit_basic unedit_basic
echo Hello > unedit_basic/hello.txt
cd unedit_basic ; svms create hello.txt
cd unedit_basic ; svms open hello.txt
echo Goodbye >> unedit_basic/hello.txt
cd unedit_basic ; svms unedit hello.txt
# Verify that hello.txt is read-only
if [ -w unedit_basic/hello.txt ] ;			\
   then	echo "File is read-write (incorrect)" ;	\
   else	echo "File is read-only (correct)" ;	\
   fi
File is read-only (correct)
# Verify that we got the right contents:
cat unedit_basic/hello.txt
Hello
# Verify that the listing file says that hello.txt is not open:
cat unedit_basic/SVMS/p.listing
H "SVMS Listing" 1. 2.
C 1.
F "hello.txt"  "{timestamp}" {hash} {zero_hash} F
E
rm -rf unedit_basic
