comparison nt/cmdproxy.c @ 96460:5220f9405507

Spelling fixes.
author Glenn Morris <rgm@gnu.org>
date Tue, 01 Jul 2008 03:02:59 +0000
parents c3309dba6542
children aeceb2460b39
comparison
equal deleted inserted replaced
96459:a90a9fcdc77d 96460:5220f9405507
1 /* Proxy shell designed for use with Emacs on Windows 95 and NT. 1 /* Proxy shell designed for use with Emacs on Windows 95 and NT.
2 Copyright (C) 1997, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2 Copyright (C) 1997, 2001, 2002, 2003, 2004, 2005, 2006, 2007,
3 2008 Free Software Foundation, Inc. 3 2008 Free Software Foundation, Inc.
4 4
5 Accepts subset of Unix sh(1) command-line options, for compatability 5 Accepts subset of Unix sh(1) command-line options, for compatibility
6 with elisp code written for Unix. When possible, executes external 6 with elisp code written for Unix. When possible, executes external
7 programs directly (a common use of /bin/sh by Emacs), otherwise 7 programs directly (a common use of /bin/sh by Emacs), otherwise
8 invokes the user-specified command processor to handle built-in shell 8 invokes the user-specified command processor to handle built-in shell
9 commands, batch files and interactive mode. 9 commands, batch files and interactive mode.
10 10
511 511
512 while (--argc > 0) 512 while (--argc > 0)
513 { 513 {
514 ++argv; 514 ++argv;
515 /* Act on switches we recognize (mostly single letter switches, 515 /* Act on switches we recognize (mostly single letter switches,
516 except for -e); all unrecognised switches and extra args are 516 except for -e); all unrecognized switches and extra args are
517 passed on to real shell if used (only really of benefit for 517 passed on to real shell if used (only really of benefit for
518 interactive use, but allow for batch use as well). Accept / as 518 interactive use, but allow for batch use as well). Accept / as
519 switch char for compatability with cmd.exe. */ 519 switch char for compatibility with cmd.exe. */
520 if (((*argv)[0] == '-' || (*argv)[0] == '/') && (*argv)[1] != '\0') 520 if (((*argv)[0] == '-' || (*argv)[0] == '/') && (*argv)[1] != '\0')
521 { 521 {
522 if (((*argv)[1] == 'c' || (*argv)[1] == 'C') && ((*argv)[2] == '\0')) 522 if (((*argv)[1] == 'c' || (*argv)[1] == 'C') && ((*argv)[2] == '\0'))
523 { 523 {
524 if (--argc == 0) 524 if (--argc == 0)