Changeset 2653 for trunk/src/kash/expand.c
- Timestamp:
- Sep 9, 2012, 8:02:54 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kash/expand.c
r2306 r2653 143 143 STPUTC(psh, '\0', psh->expdest); 144 144 p = grabstackstr(psh, psh->expdest); 145 TRACE2((psh, "expandarg: p='%s'\n", p)); 145 146 psh->exparg.lastp = &psh->exparg.list; 146 147 /* … … 1204 1205 if (metaflag == 0 || shfile_lstat(&psh->fdtab, psh->expdir, &statb) >= 0) 1205 1206 addfname(psh, psh->expdir); 1207 TRACE2((psh, "expandarg: return #1 (metaflag=%d)\n", metaflag)); 1206 1208 return; 1207 1209 } … … 1225 1227 enddir[-1] = '\0'; 1226 1228 } 1227 if ((dirp = shfile_opendir(&psh->fdtab, cp)) == NULL) 1229 if ((dirp = shfile_opendir(&psh->fdtab, cp)) == NULL) { 1230 TRACE2((psh, "expandarg: return #2 (shfile_opendir(,%s) failed)\n", cp)); 1228 1231 return; 1232 } 1229 1233 if (enddir != psh->expdir) 1230 1234 enddir[-1] = '/';
Note:
See TracChangeset
for help on using the changeset viewer.