Ignore:
Timestamp:
Sep 9, 2012, 8:02:54 PM (13 years ago)
Author:
bird
Message:

kash: fixed shfile_opendir on windows, and thereby argument expansion.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kash/expand.c

    r2306 r2653  
    143143        STPUTC(psh, '\0', psh->expdest);
    144144        p = grabstackstr(psh, psh->expdest);
     145        TRACE2((psh, "expandarg: p='%s'\n", p));
    145146        psh->exparg.lastp = &psh->exparg.list;
    146147        /*
     
    12041205                if (metaflag == 0 || shfile_lstat(&psh->fdtab, psh->expdir, &statb) >= 0)
    12051206                        addfname(psh, psh->expdir);
     1207                TRACE2((psh, "expandarg: return #1 (metaflag=%d)\n", metaflag));
    12061208                return;
    12071209        }
     
    12251227                enddir[-1] = '\0';
    12261228        }
    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));
    12281231                return;
     1232        }
    12291233        if (enddir != psh->expdir)
    12301234                enddir[-1] = '/';
Note: See TracChangeset for help on using the changeset viewer.