head 1.2; access; symbols perseant-exfatfs-base-20250801:1.2 perseant-exfatfs-base-20240630:1.2 perseant-exfatfs:1.2.0.36 perseant-exfatfs-base:1.2 cjep_sun2x:1.2.0.34 cjep_sun2x-base:1.2 cjep_staticlib_x-base1:1.2 cjep_staticlib_x:1.2.0.32 cjep_staticlib_x-base:1.2 phil-wifi-20200421:1.2 phil-wifi-20200411:1.2 phil-wifi-20200406:1.2 pgoyette-compat-merge-20190127:1.2 pgoyette-compat-20190127:1.2 pgoyette-compat-20190118:1.2 pgoyette-compat-1226:1.2 pgoyette-compat-1126:1.2 pgoyette-compat-1020:1.2 pgoyette-compat-0930:1.2 pgoyette-compat-0906:1.2 pgoyette-compat-0728:1.2 pgoyette-compat-0625:1.2 pgoyette-compat-0521:1.2 pgoyette-compat-0502:1.2 pgoyette-compat-0422:1.2 pgoyette-compat-0415:1.2 pgoyette-compat-0407:1.2 pgoyette-compat-0330:1.2 pgoyette-compat-0322:1.2 pgoyette-compat-0315:1.2 pgoyette-compat:1.2.0.30 pgoyette-compat-base:1.2 perseant-stdc-iso10646:1.2.0.28 perseant-stdc-iso10646-base:1.2 prg-localcount2-base3:1.2 prg-localcount2-base2:1.2 prg-localcount2-base1:1.2 prg-localcount2:1.2.0.26 prg-localcount2-base:1.2 pgoyette-localcount-20170426:1.2 bouyer-socketcan-base1:1.2 pgoyette-localcount-20170320:1.2 bouyer-socketcan:1.2.0.24 bouyer-socketcan-base:1.2 pgoyette-localcount-20170107:1.2 pgoyette-localcount-20161104:1.2 localcount-20160914:1.2 pgoyette-localcount-20160806:1.2 pgoyette-localcount-20160726:1.2 pgoyette-localcount:1.2.0.22 pgoyette-localcount-base:1.2 netbsd-5-2-3-RELEASE:1.2 netbsd-5-1-5-RELEASE:1.2 yamt-pagecache-base9:1.2 yamt-pagecache-tag8:1.2 tls-earlyentropy:1.2.0.18 tls-earlyentropy-base:1.2 riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.2 riastradh-drm2-base3:1.2 netbsd-5-2-2-RELEASE:1.2 netbsd-5-1-4-RELEASE:1.2 netbsd-5-2-1-RELEASE:1.2 netbsd-5-1-3-RELEASE:1.2 agc-symver:1.2.0.20 agc-symver-base:1.2 tls-maxphys-base:1.2 yamt-pagecache-base8:1.2 netbsd-5-2:1.2.0.16 yamt-pagecache-base7:1.2 netbsd-5-2-RELEASE:1.2 netbsd-5-2-RC1:1.2 yamt-pagecache-base6:1.2 yamt-pagecache-base5:1.2 yamt-pagecache-base4:1.2 netbsd-5-1-2-RELEASE:1.2 netbsd-5-1-1-RELEASE:1.2 yamt-pagecache-base3:1.2 yamt-pagecache-base2:1.2 yamt-pagecache:1.2.0.14 yamt-pagecache-base:1.2 bouyer-quota2-nbase:1.2 bouyer-quota2:1.2.0.12 bouyer-quota2-base:1.2 matt-nb5-pq3:1.2.0.10 matt-nb5-pq3-base:1.2 netbsd-5-1:1.2.0.8 netbsd-5-1-RELEASE:1.2 netbsd-5-1-RC4:1.2 netbsd-5-1-RC3:1.2 netbsd-5-1-RC2:1.2 netbsd-5-1-RC1:1.2 netbsd-5-0-2-RELEASE:1.2 netbsd-5-0-1-RELEASE:1.2 jym-xensuspend-nbase:1.2 netbsd-5-0:1.2.0.6 netbsd-5-0-RELEASE:1.2 netbsd-5-0-RC4:1.2 netbsd-5-0-RC3:1.2 netbsd-5-0-RC2:1.2 jym-xensuspend:1.2.0.4 jym-xensuspend-base:1.2 netbsd-5-0-RC1:1.2 netbsd-5:1.2.0.2 netbsd-5-base:1.2 matt-mips64-base2:1.1.1.2 matt-mips64:1.1.1.2.0.54 mjf-devfs2:1.1.1.2.0.52 mjf-devfs2-base:1.1.1.2 netbsd-4-0-1-RELEASE:1.1.1.2 wrstuden-revivesa-base-3:1.1.1.2 wrstuden-revivesa-base-2:1.1.1.2 wrstuden-fixsa-newbase:1.1.1.2 wrstuden-revivesa-base-1:1.1.1.2 yamt-pf42-base4:1.1.1.2 yamt-pf42-base3:1.1.1.2 hpcarm-cleanup-nbase:1.1.1.2 yamt-pf42-baseX:1.1.1.2 yamt-pf42-base2:1.1.1.2 wrstuden-revivesa:1.1.1.2.0.50 wrstuden-revivesa-base:1.1.1.2 yamt-pf42:1.1.1.2.0.48 yamt-pf42-base:1.1.1.2 keiichi-mipv6-nbase:1.1.1.2 keiichi-mipv6:1.1.1.2.0.46 keiichi-mipv6-base:1.1.1.2 matt-armv6-nbase:1.1.1.2 matt-armv6-prevmlocking:1.1.1.2 wrstuden-fixsa-base-1:1.1.1.2 netbsd-4-0:1.1.1.2.0.44 netbsd-4-0-RELEASE:1.1.1.2 cube-autoconf:1.1.1.2.0.42 cube-autoconf-base:1.1.1.2 netbsd-4-0-RC5:1.1.1.2 netbsd-4-0-RC4:1.1.1.2 netbsd-4-0-RC3:1.1.1.2 netbsd-4-0-RC2:1.1.1.2 netbsd-4-0-RC1:1.1.1.2 matt-armv6:1.1.1.2.0.40 matt-armv6-base:1.1.1.2 matt-mips64-base:1.1.1.2 hpcarm-cleanup:1.1.1.2.0.38 hpcarm-cleanup-base:1.1.1.2 netbsd-3-1-1-RELEASE:1.1.1.2 netbsd-3-0-3-RELEASE:1.1.1.2 wrstuden-fixsa:1.1.1.2.0.36 wrstuden-fixsa-base:1.1.1.2 abandoned-netbsd-4-base:1.1.1.2 abandoned-netbsd-4:1.1.1.2.0.30 netbsd-3-1:1.1.1.2.0.32 netbsd-3-1-RELEASE:1.1.1.2 netbsd-3-0-2-RELEASE:1.1.1.2 netbsd-3-1-RC4:1.1.1.2 netbsd-3-1-RC3:1.1.1.2 netbsd-3-1-RC2:1.1.1.2 netbsd-3-1-RC1:1.1.1.2 netbsd-4:1.1.1.2.0.34 netbsd-4-base:1.1.1.2 chap-midi-nbase:1.1.1.2 netbsd-3-0-1-RELEASE:1.1.1.2 chap-midi:1.1.1.2.0.28 chap-midi-base:1.1.1.2 netbsd-3-0:1.1.1.2.0.26 netbsd-3-0-RELEASE:1.1.1.2 netbsd-3-0-RC6:1.1.1.2 netbsd-3-0-RC5:1.1.1.2 netbsd-3-0-RC4:1.1.1.2 netbsd-3-0-RC3:1.1.1.2 netbsd-3-0-RC2:1.1.1.2 netbsd-3-0-RC1:1.1.1.2 netbsd-2-0-3-RELEASE:1.1.1.2 netbsd-2-1:1.1.1.2.0.24 netbsd-2-1-RELEASE:1.1.1.2 netbsd-2-1-RC6:1.1.1.2 netbsd-2-1-RC5:1.1.1.2 netbsd-2-1-RC4:1.1.1.2 netbsd-2-1-RC3:1.1.1.2 netbsd-2-1-RC2:1.1.1.2 netbsd-2-1-RC1:1.1.1.2 netbsd-2-0-2-RELEASE:1.1.1.2 netbsd-3:1.1.1.2.0.22 netbsd-3-base:1.1.1.2 netbsd-2-0-1-RELEASE:1.1.1.2 netbsd-2:1.1.1.2.0.20 netbsd-2-base:1.1.1.2 netbsd-2-0-RELEASE:1.1.1.2 netbsd-2-0-RC5:1.1.1.2 netbsd-2-0-RC4:1.1.1.2 netbsd-2-0-RC3:1.1.1.2 netbsd-2-0-RC2:1.1.1.2 netbsd-2-0-RC1:1.1.1.2 netbsd-2-0:1.1.1.2.0.18 netbsd-2-0-base:1.1.1.2 netbsd-1-6-PATCH002-RELEASE:1.1.1.2 netbsd-1-6-PATCH002:1.1.1.2 netbsd-1-6-PATCH002-RC4:1.1.1.2 netbsd-1-6-PATCH002-RC3:1.1.1.2 netbsd-1-6-PATCH002-RC2:1.1.1.2 netbsd-1-6-PATCH002-RC1:1.1.1.2 netbsd-1-6-PATCH001:1.1.1.2 netbsd-1-6-PATCH001-RELEASE:1.1.1.2 netbsd-1-6-PATCH001-RC3:1.1.1.2 netbsd-1-6-PATCH001-RC2:1.1.1.2 netbsd-1-6-PATCH001-RC1:1.1.1.2 fvdl_fs64_base:1.1.1.2 netbsd-1-6-RELEASE:1.1.1.2 netbsd-1-6-RC3:1.1.1.2 netbsd-1-6-RC2:1.1.1.2 netbsd-1-6-RC1:1.1.1.2 netbsd-1-6:1.1.1.2.0.16 netbsd-1-6-base:1.1.1.2 netbsd-1-5-PATCH003:1.1.1.2 netbsd-1-5-PATCH002:1.1.1.2 netbsd-1-5-PATCH001:1.1.1.2 nvi_1_79:1.1.1.2 netbsd-1-5-RELEASE:1.1.1.2 netbsd-1-5-BETA2:1.1.1.2 netbsd-1-5-BETA:1.1.1.2 netbsd-1-4-PATCH003:1.1.1.2 netbsd-1-5-ALPHA2:1.1.1.2 netbsd-1-5:1.1.1.2.0.14 netbsd-1-5-base:1.1.1.2 minoura-xpg4dl-base:1.1.1.2 minoura-xpg4dl:1.1.1.2.0.12 netbsd-1-4-PATCH002:1.1.1.2 wrstuden-devbsize-19991221:1.1.1.2 wrstuden-devbsize:1.1.1.2.0.10 wrstuden-devbsize-base:1.1.1.2 comdex-fall-1999:1.1.1.2.0.8 comdex-fall-1999-base:1.1.1.2 netbsd-1-4-PATCH001:1.1.1.2 netbsd-1-4-RELEASE:1.1.1.2 netbsd-1-4:1.1.1.2.0.6 netbsd-1-4-base:1.1.1.2 netbsd-1-3-PATCH003:1.1.1.2 netbsd-1-3-PATCH003-CANDIDATE2:1.1.1.2 netbsd-1-3-PATCH003-CANDIDATE1:1.1.1.2 netbsd-1-3-PATCH003-CANDIDATE0:1.1.1.2 netbsd-1-3-PATCH002:1.1.1.2 netbsd-1-3-PATCH001:1.1.1.2 netbsd-1-3-RELEASE:1.1.1.2 netbsd-1-3-BETA:1.1.1.2 netbsd-1-3:1.1.1.2.0.2 netbsd-1-3-base:1.1.1.2 netbsd-1-2-PATCH001:1.1.1.2 netbsd-1-2-RELEASE:1.1.1.2 netbsd-1-2-BETA:1.1.1.2 netbsd-1-2:1.1.1.2.0.4 netbsd-1-2-base:1.1.1.2 nvi_1_66:1.1.1.2 BOSTIC:1.1.1 netbsd-1-1-PATCH001:1.1.1.1 netbsd-1-1-RELEASE:1.1.1.1 netbsd-1-1:1.1.1.1.0.4 netbsd-1-1-base:1.1.1.1 netbsd-1-0-PATCH06:1.1.1.1 netbsd-1-0-PATCH05:1.1.1.1 netbsd-1-0-PATCH04:1.1.1.1 netbsd-1-0-PATCH03:1.1.1.1 netbsd-1-0-PATCH02:1.1.1.1 netbsd-1-0-PATCH1:1.1.1.1 netbsd-1-0-PATCH0:1.1.1.1 netbsd-1-0-RELEASE:1.1.1.1 netbsd-1-0:1.1.1.1.0.2 nvi-1-34b:1.1.1.1 nvi-1-33b:1.1.1.1 netbsd-1-0-base:1.1.1.1 nvi-1-11b:1.1.1.1 bostic-nvi:1.1.1; locks; strict; comment @# @; 1.2 date 2008.10.29.16.49.36; author christos; state dead; branches; next 1.1; 1.1 date 94.03.28.03.01.30; author cgd; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 94.03.28.03.01.31; author cgd; state Exp; branches; next 1.1.1.2; 1.1.1.2 date 96.05.20.02.02.56; author mrg; state Exp; branches; next ; desc @@ 1.2 log @bye old vi! @ text @# @@(#)autowrite 8.2 (Berkeley) 9/28/93 Vi autowrite behavior, the fields with *'s are "don't cares". =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Commands that are affected only by autowrite: Command File Autowrite? Action: modified? ----------------------------------------------- ^Z Y Y Write file and suspend. ^Z Y N Suspend. ^Z N * Suspend. # This behavior is NOT identical to :edit. ^ Y Y Write file and jump. ^ Y N Error. ^ N * Jump. # The new nvi command ^T (:tagpop) behaves identically to ^]. # This behavior is identical to :tag, :tagpop, and :tagpush with # force always set to N. ^] Y Y Write file and jump. ^] Y N Error. ^] N * Jump. # There's no way to specify a force flag to the '!' command. :! Y Y Write file and execute. :! Y N Warn (if warn option) and execute. :! N * Execute. =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Commands that are affected by both autowrite and force: NOTE: the "force" flag is never passed on, i.e. the write to the file caused by the autowrite flag is never forced. Command File Autowrite? Force? Action: modified? (!) ------------------------------------------------------- # The first rule (YYY) is historic practice, but seems wrong. # In nvi, :next and :prev commands behave identically to :rewind. :next Y Y Y Write changes and jump. :next Y Y N Write changes and jump. :next Y N Y Abandon changes and jump. :next Y N N Error. :next N * * Jump. :rewind Y Y Y Abandon changes and jump. :rewind Y Y N Write changes and jump. :rewind Y N Y Abandon changes and jump. :rewind Y N N Error. :rewind N * * Jump. # The new nvi commands, :tagpop and :tagtop, behave identically to :tag. # Note, this behavior is the same as :rewind and friends, as well. :tag Y Y Y Abandon changes and jump. :tag Y Y N Write changes and jump. :tag Y N Y Abandon changes and jump. :tag Y N N Error. :tag N * * Jump. # The command :suspend behaves identically to :stop. :stop Y Y Y Suspend. :stop Y Y N Write changes and suspend. :stop Y N Y Suspend. :stop Y N N Suspend. :stop N * * Suspend. =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Commands that might be affected by autowrite, but aren't: Command File Autowrite? Force? Action: modified? (!) ------------------------------------------------------- #:ex, and :vi (executed while in vi mode) behave identically to :edit. :edit Y * Y Abandon changes and jump. :edit Y * N Error. :edit N * * Jump. :quit Y * Y Quit. :quit Y * N Error. :quit N * * Quit. :shell * * * Execute shell. :xit Y * * Write changes and exit. :xit N * * Exit. @ 1.1 log @Initial revision @ text @@ 1.1.1.1 log @nvi/nex 1.11beta from bostic. @ text @@ 1.1.1.2 log @import of nvi 1.66 @ text @d1 1 a1 1 # @@(#)autowrite 8.3 (Berkeley) 2/17/95 d16 3 a18 3 ^^ Y Y Write file and jump. ^^ Y N Error. ^^ N * Jump. @