Changeset 1202 for trunk/src/kash/miscbltin.c
- Timestamp:
- Oct 7, 2007, 2:24:15 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kash/miscbltin.c
r1199 r1202 105 105 rflag = 0; 106 106 prompt = NULL; 107 while ((i = nextopt( "p:r")) != '\0') {107 while ((i = nextopt(psh, "p:r")) != '\0') { 108 108 if (i == 'p') 109 109 prompt = optionarg; … … 120 120 error(psh, "arg count"); 121 121 122 if ((ifs = bltinlookup( "IFS", 1)) == NULL)122 if ((ifs = bltinlookup(psh, "IFS", 1)) == NULL) 123 123 ifs = " \t\n"; 124 124 … … 186 186 187 187 STACKSTRNUL(psh, p); 188 setvar( *ap, stackblock(psh), 0);188 setvar(psh, *ap, stackblock(psh), 0); 189 189 ap++; 190 190 STARTSTACKSTR(psh, p); … … 203 203 break; 204 204 } 205 setvar( *ap, stackblock(psh), 0);205 setvar(psh, *ap, stackblock(psh), 0); 206 206 207 207 /* Set any remaining args to "" */ 208 208 while (*++ap != NULL) 209 setvar( *ap, nullstr, 0);209 setvar(psh, *ap, nullstr, 0); 210 210 return status; 211 211 } … … 221 221 int symbolic_mode = 0; 222 222 223 while ((i = nextopt( "S")) != '\0') {223 while ((i = nextopt(psh, "S")) != '\0') { 224 224 symbolic_mode = 1; 225 225 } … … 366 366 367 367 what = 'f'; 368 while ((optc = nextopt( "HSabtfdsmcnpl")) != '\0')368 while ((optc = nextopt(psh, "HSabtfdsmcnpl")) != '\0') 369 369 switch (optc) { 370 370 case 'H':
Note:
See TracChangeset
for help on using the changeset viewer.