mirror of
git://git.code.sf.net/p/zsh/code
synced 2024-12-29 16:25:35 +01:00
33686: set PS1 before pattern-matching for it
If run as a privleged user, the default PS1 does not contain "%", so don't use the default PS1 when expecting to match "%" in the output.
This commit is contained in:
parent
53344183e1
commit
c1d9623d2e
2 changed files with 5 additions and 3 deletions
|
@ -1,5 +1,7 @@
|
|||
2014-11-13 Barton E. Schaefer <schaefer@zsh.org>
|
||||
|
||||
* 33686: Test/B06fc.ztst: set PS1 before pattern-matching for it
|
||||
|
||||
* 33656: Src/builtin.c: different algorithm for "whence -am" to
|
||||
produce results more consistent with "whence -m"
|
||||
|
||||
|
|
|
@ -10,16 +10,16 @@
|
|||
1:Checking that fc -l foo doesn't core dump when history is empty
|
||||
?./fcl:fc:1: event not found: foo
|
||||
|
||||
$ZTST_testdir/../Src/zsh +Z -fsi <<< $'fc -p /dev/null 0 0\n:'
|
||||
PS1='%% ' $ZTST_testdir/../Src/zsh +Z -fsi <<< $'fc -p /dev/null 0 0\n:'
|
||||
0:Checking that fc -p doesn't core dump when history size is zero
|
||||
*?*%*
|
||||
|
||||
$ZTST_testdir/../Src/zsh +Z -fsi <<< 'fc -p /dev/null a 0'
|
||||
PS1='%% ' $ZTST_testdir/../Src/zsh +Z -fsi <<< 'fc -p /dev/null a 0'
|
||||
1:Checking that fc -p rejects non-integer history size
|
||||
*?*% fc: HISTSIZE must be an integer
|
||||
*?*%*
|
||||
|
||||
$ZTST_testdir/../Src/zsh +Z -fsi <<< 'fc -p /dev/null 0 a'
|
||||
PS1='%% ' $ZTST_testdir/../Src/zsh +Z -fsi <<< 'fc -p /dev/null 0 a'
|
||||
1:Checking that fc -p rejects non-integer history save size
|
||||
*?*% fc: SAVEHIST must be an integer
|
||||
*?*%*
|
||||
|
|
Loading…
Reference in a new issue