diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2010-01-27 19:24:22 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2010-01-27 19:24:22 +0000 |
commit | 06b7029aa8c06310135734c646ba795772f973bb (patch) | |
tree | 6c3bb2514acb0950010a8bb350ac9634792d8096 /Src/init.c | |
parent | b49746d827349233da6a5365b46ef9a0454c3cea (diff) | |
download | zsh-06b7029aa8c06310135734c646ba795772f973bb.tar.gz zsh-06b7029aa8c06310135734c646ba795772f973bb.tar.xz zsh-06b7029aa8c06310135734c646ba795772f973bb.zip |
27638, based on Frank Terbeck, 27633: SOURCETRACE option
Diffstat (limited to 'Src/init.c')
-rw-r--r-- | Src/init.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Src/init.c b/Src/init.c index 123e20e85..812cd8409 100644 --- a/Src/init.c +++ b/Src/init.c @@ -1126,6 +1126,11 @@ source(char *s) scriptname = s; scriptfilename = s; + if (isset(SOURCETRACE)) { + printprompt4(); + fprintf(xtrerr ? xtrerr : stderr, "<sourcetrace>\n"); + } + /* * The special return behaviour of traps shouldn't * trigger in files sourced from traps; the return |