Changeset 1236 for trunk/src/kash/cd.c


Ignore:
Timestamp:
Oct 10, 2007, 2:41:39 AM (18 years ago)
Author:
bird
Message:

Deal with basic bash prompting.

File:
1 edited

Legend:

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

    r1233 r1236  
    335335 * directory, this routine returns immediately.
    336336 */
    337 void
     337const char *
    338338getpwd(shinstance *psh, int noerror)
    339339{
     
    343343
    344344        if (psh->curdir)
    345                 return;
     345                return psh->curdir;
    346346
    347347        if (psh->getpwd_first) {
     
    353353                    stdot.st_ino == stpwd.st_ino) {
    354354                        psh->curdir = savestr(pwd);
    355                         return;
     355                        return psh->curdir;
    356356                }
    357357        }
     
    359359        find_curdir(psh, noerror);
    360360
    361         return;
     361        return psh->curdir;
    362362}
    363363
Note: See TracChangeset for help on using the changeset viewer.