Changeset View
Changeset View
Standalone View
Standalone View
bin/sh/options.c
Show First 20 Lines • Show All 291 Lines • ▼ Show 20 Lines | setoptionbyindex(int idx, int val) | ||||
} | } | ||||
optval[idx] = val; | optval[idx] = val; | ||||
if (val) { | if (val) { | ||||
/* #%$ hack for ksh semantics */ | /* #%$ hack for ksh semantics */ | ||||
if (&optval[idx] == &Vflag) | if (&optval[idx] == &Vflag) | ||||
Eflag = 0; | Eflag = 0; | ||||
else if (&optval[idx] == &Eflag) | else if (&optval[idx] == &Eflag) | ||||
Vflag = 0; | Vflag = 0; | ||||
else if (&optval[idx] == &Sflag) | |||||
Sflag = 1; | |||||
jilles: These lines do nothing and are not needed. The above four turn off -V when -E is enabled, and… | |||||
} | } | ||||
} | } | ||||
static void | static void | ||||
setoption(int flag, int val) | setoption(int flag, int val) | ||||
{ | { | ||||
int i; | int i; | ||||
▲ Show 20 Lines • Show All 287 Lines • Show Last 20 Lines |
These lines do nothing and are not needed. The above four turn off -V when -E is enabled, and vice versa.