From: canacar Date: Sat, 12 Jul 2008 06:20:47 +0000 (+0000) Subject: Add ':q' as an alias to ':quit', to match old behaviour. Initial patch X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=e27f27612fcdf58c6183b76692f7ab7b245ce4ef;p=openbsd Add ':q' as an alias to ':quit', to match old behaviour. Initial patch from dlg@, this is a simpler version. --- diff --git a/usr.bin/systat/main.c b/usr.bin/systat/main.c index 537411e4a66..7be6527f314 100644 --- a/usr.bin/systat/main.c +++ b/usr.bin/systat/main.c @@ -1,4 +1,4 @@ -/* $Id: main.c,v 1.40 2008/06/13 10:06:14 deraadt Exp $ */ +/* $Id: main.c,v 1.41 2008/07/12 06:20:47 canacar Exp $ */ /* * Copyright (c) 2001, 2007 Can Erkin Acar * Copyright (c) 2001 Daniel Hartmeier @@ -289,7 +289,7 @@ cmd_compat(void) need_update = 1; return; } - if (strcasecmp(cmdbuf, "quit") == 0) { + if (strcasecmp(cmdbuf, "quit") == 0 || strcasecmp(cmdbuf, "q") == 0) { gotsig_close = 1; return; }