- Timestamp:
- Sep 9, 2012 6:02:54 PM (12 years ago)
- Location:
- trunk/src/kash
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kash/eval.c
r2424 r2653 706 706 psh->back_exitstatus = 0; 707 707 708 /** @todo r=bird: Why is arguments and envvars expanded in this 709 * particular order? It would be both faster and simpler to do the 710 * envvars first and then continue with the arguments... */ 708 711 arglist.lastp = &arglist.list; 709 712 varflag = 1; -
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] = '/'; -
trunk/src/kash/shfile.c
r2652 r2653 1808 1808 shdir *pdir = NULL; 1809 1809 1810 TRACE2((NULL, "shfile_opendir: dir='%s'\n", dir)); 1811 shfile_init_globals(); 1810 1812 if (g_pfnNtQueryDirectoryFile) 1811 1813 { … … 1840 1842 } 1841 1843 else 1842 shfile_dos2errno(GetLastError()); 1844 { 1845 errno = shfile_dos2errno(GetLastError()); 1846 TRACE2((NULL, "shfile_opendir: CreateFileA(%s) -> %d/%d\n", abspath, GetLastError(), errno)); 1847 } 1843 1848 } 1844 1849 } … … 1847 1852 return pdir; 1848 1853 #else 1854 TRACE2((NULL, "shfile_opendir: dir='%s'\n", dir)); 1849 1855 return (shdir *)opendir(dir); 1850 1856 #endif
Note:
See TracChangeset
for help on using the changeset viewer.