vi exit status

John Esak john at valar.com
Sun Jun 17 14:57:09 PDT 2007


Well, I tried these on FreeBSD and the exit status was 0.  However, wouldn't
you expect it to be thus?

Isn't it the exit status of the last command (which I would think is the vi
itself, not commands that worked or didn't work inside vi) the only thing
one can check... and didn't vi succeed?  So, wouldn't you expect it to be 0?

JE

> -----Original Message-----
> From: filepro-list-bounces+john=valar.com at lists.celestial.com
> [mailto:filepro-list-bounces+john=valar.com at lists.celestial.com]On
> Behalf Of Jean-Pierre A. Radley
> Sent: Sunday, June 17, 2007 12:41 PM
> To: FilePro Mailing List
> Subject: OT: vi exit status
>
>
> 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?
>
> --
> JP
> 	==> http://www.frappr.com/cusm <==
> _______________________________________________
> Filepro-list mailing list
> Filepro-list at lists.celestial.com
> http://mailman.celestial.com/mailman/listinfo/filepro-list



More information about the Filepro-list mailing list