srfsh accepts exit and ExIt
authorerickson <erickson@9efc2488-bf62-4759-914b-345cdb29e865>
Wed, 11 Jan 2006 22:13:01 +0000 (22:13 +0000)
committererickson <erickson@9efc2488-bf62-4759-914b-345cdb29e865>
Wed, 11 Jan 2006 22:13:01 +0000 (22:13 +0000)
git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@620 9efc2488-bf62-4759-914b-345cdb29e865

src/srfsh/srfsh.c

index 4870b88..b1c49a5 100644 (file)
@@ -60,7 +60,7 @@ int main( int argc, char* argv[] ) {
        char* request;
        while((request=readline(prompt))) {
 
-               if( !strcmp(request, "exit") || !strcmp(request,"quit")) 
+               if( !strcasecmp(request, "exit") || !strcasecmp(request,"quit")) 
                        break; 
 
                char* req_copy = strdup(request);