Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
1d7d10d1
Commit
1d7d10d1
authored
Oct 06, 1998
by
Geoff Voelker
Browse files
(main): Treat command line options as case-insensitive.
parent
850b7aa7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
nt/cmdproxy.c
nt/cmdproxy.c
+4
-4
No files found.
nt/cmdproxy.c
View file @
1d7d10d1
...
...
@@ -496,21 +496,21 @@ main (int argc, char ** argv)
passed on to real shell if used (only really of benefit for
interactive use, but allow for batch use as well). Accept / as
switch char for compatability with cmd.exe. */
if
(
((
*
argv
)[
0
]
==
'-'
||
(
*
argv
)[
0
]
==
'/'
)
&&
(
*
argv
)[
1
]
!=
'\0'
)
if
(((
*
argv
)[
0
]
==
'-'
||
(
*
argv
)[
0
]
==
'/'
)
&&
(
*
argv
)[
1
]
!=
'\0'
)
{
if
(
((
*
argv
)[
1
]
==
'c'
)
&&
((
*
argv
)[
2
]
==
'\0'
)
)
if
(((
*
argv
)[
1
]
==
'c'
||
(
*
argv
)[
1
]
==
'C'
)
&&
((
*
argv
)[
2
]
==
'\0'
))
{
if
(
--
argc
==
0
)
fail
(
"error: expecting arg for %s
\n
"
,
*
argv
);
cmdline
=
*
(
++
argv
);
interactive
=
FALSE
;
}
else
if
(
((
*
argv
)[
1
]
==
'i'
)
&&
((
*
argv
)[
2
]
==
'\0'
)
)
else
if
(((
*
argv
)[
1
]
==
'i'
||
(
*
argv
)[
1
]
==
'I'
)
&&
((
*
argv
)[
2
]
==
'\0'
))
{
if
(
cmdline
)
warn
(
"warning: %s ignored because of -c
\n
"
,
*
argv
);
}
else
if
(
((
*
argv
)[
1
]
==
'e'
)
&&
((
*
argv
)[
2
]
==
':'
)
)
else
if
(((
*
argv
)[
1
]
==
'e'
||
(
*
argv
[
1
]
==
'E'
)
)
&&
((
*
argv
)[
2
]
==
':'
))
{
int
requested_envsize
=
atoi
(
*
argv
+
3
);
/* Enforce a reasonable minimum size, as above. */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment