diff options
Diffstat (limited to 'hush.c')
-rw-r--r-- | hush.c | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -2473,7 +2473,7 @@ void update_ifs_map(void) | |||
2473 | * The map[] array only really needs two bits each, and on most machines | 2473 | * The map[] array only really needs two bits each, and on most machines |
2474 | * that would be faster because of the reduced L1 cache footprint. | 2474 | * that would be faster because of the reduced L1 cache footprint. |
2475 | */ | 2475 | */ |
2476 | memset(map,0,256); /* most characters flow through always */ | 2476 | memset(map,0,sizeof(map)); /* most characters flow through always */ |
2477 | mapset("\\$'\"`", 3); /* never flow through */ | 2477 | mapset("\\$'\"`", 3); /* never flow through */ |
2478 | mapset("<>;&|(){}#", 1); /* flow through if quoted */ | 2478 | mapset("<>;&|(){}#", 1); /* flow through if quoted */ |
2479 | mapset(ifs, 2); /* also flow through if quoted */ | 2479 | mapset(ifs, 2); /* also flow through if quoted */ |
@@ -2541,10 +2541,6 @@ int shell_main(int argc, char **argv) | |||
2541 | struct jobset joblist_end = { NULL, NULL }; | 2541 | struct jobset joblist_end = { NULL, NULL }; |
2542 | char **e = environ; | 2542 | char **e = environ; |
2543 | 2543 | ||
2544 | /* FIXME */ | ||
2545 | fprintf(stderr, "sizeof(map)=%d\n", sizeof(map)); | ||
2546 | |||
2547 | |||
2548 | /* XXX what should these be while sourcing /etc/profile? */ | 2544 | /* XXX what should these be while sourcing /etc/profile? */ |
2549 | global_argc = argc; | 2545 | global_argc = argc; |
2550 | global_argv = argv; | 2546 | global_argv = argv; |