diff options
| author | Peter Stephenson <pws@zsh.org> | 2017-06-13 15:41:00 +0100 |
|---|---|---|
| committer | Peter Stephenson <pws@zsh.org> | 2017-06-13 15:41:00 +0100 |
| commit | eb783754bdb74377f3cea4ceca9c23a02ea1bf58 (patch) | |
| tree | 3e0a35c59c8f624d06e979edba8f2aa364bb3aea /Test/B01cd.ztst | |
| parent | 41244: Add zmodload -s option. (diff) | |
| download | zsh-eb783754bdb74377f3cea4ceca9c23a02ea1bf58.tar zsh-eb783754bdb74377f3cea4ceca9c23a02ea1bf58.tar.gz zsh-eb783754bdb74377f3cea4ceca9c23a02ea1bf58.tar.bz2 zsh-eb783754bdb74377f3cea4ceca9c23a02ea1bf58.tar.lz zsh-eb783754bdb74377f3cea4ceca9c23a02ea1bf58.tar.xz zsh-eb783754bdb74377f3cea4ceca9c23a02ea1bf58.tar.zst zsh-eb783754bdb74377f3cea4ceca9c23a02ea1bf58.zip | |
41284: Fix NULL dereference in cd.
This happened in sh compatiblity mode if HOME was not set
and cd was used with no argument.
Diffstat (limited to 'Test/B01cd.ztst')
| -rw-r--r-- | Test/B01cd.ztst | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Test/B01cd.ztst b/Test/B01cd.ztst index 94447e717..8d4f0955c 100644 --- a/Test/B01cd.ztst +++ b/Test/B01cd.ztst @@ -137,6 +137,10 @@ F:something is broken. But you already knew that. 0: ?(eval):cd:3: not a directory: link_to_nonexistent + (unset HOME; ARGV0=sh $ZTST_testdir/../Src/zsh -c cd) +1:Implicit cd with unset HOME. +?zsh:cd:1: HOME not set + %clean # This optional section cleans up after the test, if necessary, # e.g. killing processes etc. This is in addition to the removal of *.tmp |
