OT: vi exit status

Bill Campbell bill at celestial.com
Sun Jun 17 11:23:42 PDT 2007


On Sun, Jun 17, 2007, Jean-Pierre A. Radley wrote:
>I'd be much appreciative if some one could conduct a small
>experiment on BSD, and someone else on AIX:
>
>Enter 'vi' (NOT 'vim') with any file at all as its target.
>
>Do:
>	:s/lkj32d/f/
>	:/AoPoToRoWo/d
>	:1t5000
>
>The odds are in my favor that all three commands fail.
>If not, commit some other mistakes.
>
>Then quit 'vi'.
>What is its exit status?

FreeBSD 4.8, /usr/bin/vi returns ``0''.

Bill
--
INTERNET:   bill at Celestial.COM  Bill Campbell; Celestial Software LLC
URL: http://www.celestial.com/  PO Box 820; 6641 E. Mercer Way
FAX:            (206) 232-9186  Mercer Island, WA 98040-0820; (206) 236-1676

``The man who produces while others dispose of his product is a slave.''
   Ayn Rand


More information about the Filepro-list mailing list