diff options
| author | Peter Stephenson <pws@users.sourceforge.net> | 2012-03-05 10:06:28 +0000 |
|---|---|---|
| committer | Peter Stephenson <pws@users.sourceforge.net> | 2012-03-05 10:06:28 +0000 |
| commit | 86f8e8de696404b85c334916bfe3d69bdd4291c6 (patch) | |
| tree | a37c7c91bfe9f5b92bf574e56009ff86f49e3f0f /Src/exec.c | |
| parent | 30303: emulate inside function marked for execution tracing enables xtrace (diff) | |
| download | zsh-86f8e8de696404b85c334916bfe3d69bdd4291c6.tar zsh-86f8e8de696404b85c334916bfe3d69bdd4291c6.tar.gz zsh-86f8e8de696404b85c334916bfe3d69bdd4291c6.tar.bz2 zsh-86f8e8de696404b85c334916bfe3d69bdd4291c6.tar.lz zsh-86f8e8de696404b85c334916bfe3d69bdd4291c6.tar.xz zsh-86f8e8de696404b85c334916bfe3d69bdd4291c6.tar.zst zsh-86f8e8de696404b85c334916bfe3d69bdd4291c6.zip | |
30307 plus tweak suggsted by Wayne: use %lld for zlong when long long
Diffstat (limited to 'Src/exec.c')
| -rw-r--r-- | Src/exec.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Src/exec.c b/Src/exec.c index aa5c1000e..6ebc9c014 100644 --- a/Src/exec.c +++ b/Src/exec.c @@ -3252,7 +3252,11 @@ execcmd(Estate state, int input, int output, int how, int last1) } if (isset(PRINTEXITVALUE) && isset(SHINSTDIN) && lastval && !subsh) { +#if defined(ZLONG_IS_LONG_LONG) && defined(PRINTF_HAS_LLD) + fprintf(stderr, "zsh: exit %lld\n", lastval); +#else fprintf(stderr, "zsh: exit %ld\n", (long)lastval); +#endif fflush(stderr); } |
