mirror of
https://github.com/sheumann/hush.git
synced 2024-12-27 16:31:24 +00:00
Hiroshi Ito writes:
ash "unset OLDPWD; cd -" causes segmentation fault. ( OLDPWD is not set when sh is invoked from getty. ) patch against current CVS is attached.
This commit is contained in:
parent
31c27a9c65
commit
c00e11df85
@ -2316,6 +2316,7 @@ cdcmd(int argc, char **argv)
|
||||
dest = bltinlookup(homestr);
|
||||
else if (dest[0] == '-' && dest[1] == '\0') {
|
||||
dest = bltinlookup("OLDPWD");
|
||||
if ( !dest ) goto out;
|
||||
flags |= CD_PRINT;
|
||||
goto step7;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user