# Do a sequence of open/close's with no underlying file changes:
rm -rf close_no_change
svms new -R close_no_change close_no_change
echo Hello > close_no_change/hello.txt
cd close_no_change ; svms create hello.txt
cat close_no_change/SVMS/h.hello.txt
H "SVMS_History_File" 1. 0.
N "hello.txt"  "{timestamp}"
V 0. "close_no_change"  "{timestamp}" F  "{timestamp}"
L 1.
T "Hello"
D 1. |0:0!1.
C 0.
I 0.
X 0. 0. "File" "close_no_change"  "{timestamp}"  "{timestamp}" 0. "Wayne C. Gramlich" F F
cd close_no_change ; svms open hello.txt
# Close file without making any modifications:
cd close_no_change ;	svms close -n hello.txt
cat close_no_change/SVMS/h.hello.txt
H "SVMS_History_File" 1. 0.
N "hello.txt"  "{timestamp}"
V 0. "close_no_change"  "{timestamp}" F  "{timestamp}"
L 1.
T "Hello"
D 1. |0:0!1.
C 0.
I 0.
V 1. "close_no_change"  "{timestamp}" F  "{timestamp}"
L 0.
D 1. |0:0!1.
C 0.
I 0.
X 0. 0. "File" "close_no_change"  "{timestamp}"  "{timestamp}" 0. "Wayne C. Gramlich" F F
X 1. 1. "File" "close_no_change"  "{timestamp}"  "{timestamp}" 1. "Wayne C. Gramlich" T 0. F
cd close_no_change ; svms open hello.txt
# Close file without making any modifications:
cd close_no_change ;	svms close -n hello.txt
cat close_no_change/hello.txt
Hello
# Capture directory structure:
ls -R close_no_change
SVMS
hello.txt

close_no_change/SVMS:
h.hello.txt
p.listing
p.project
if [ -w close_no_change/hello.txt ] ;			\
    then echo "File is writable (incorrect)" ;	\
    else echo "File is read-only (correct)" ;	\
    fi
File is read-only (correct)
cat close_no_change/SVMS/h.hello.txt
H "SVMS_History_File" 1. 0.
N "hello.txt"  "{timestamp}"
V 0. "close_no_change"  "{timestamp}" F  "{timestamp}"
L 1.
T "Hello"
D 1. |0:0!1.
C 0.
I 0.
V 1. "close_no_change"  "{timestamp}" F  "{timestamp}"
L 0.
D 1. |0:0!1.
C 0.
I 0.
V 2. "close_no_change"  "{timestamp}" F  "{timestamp}"
L 0.
D 1. |0:0!1.
C 0.
I 0.
X 0. 0. "File" "close_no_change"  "{timestamp}"  "{timestamp}" 0. "Wayne C. Gramlich" F F
X 1. 1. "File" "close_no_change"  "{timestamp}"  "{timestamp}" 1. "Wayne C. Gramlich" T 0. F
X 2. 2. "File" "close_no_change"  "{timestamp}"  "{timestamp}" 2. "Wayne C. Gramlich" T 1. F
rm -rf close_no_change
