1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-07-13 17:31:27 +02:00
Commit graph

181 commits

Author SHA1 Message Date
Barton E. Schaefer
c98cbe25d2 31919: fix deadlock when a shell builtin with a multio redirection is used on the left side of a pipeline
Make sure stdin/out/err file descriptors are closed for the multio copy
process, which means not re-using those descriptors after they are closed
and marked FDT_UNUSED in fdtable[].  For completeness, initialize their
fdtable[] state to FDT_EXTERNAL.
2013-10-27 15:42:00 -07:00
Bart Schaefer
4e43360261 31361: handle negative optno ("no" prefix used)
when storing options with parseopts_insert() for sticky contexts
2013-04-30 00:22:03 -07:00
Bart Schaefer
d19e18c68d 31350: block SIGWINCH nearly all the time, except
when about to calculate prompts or do synchronous read, so
syscalls are not interrupted by window size changes.
2013-04-30 00:08:49 -07:00
Peter Stephenson
7c56d77184 30789: Add CONTINUE_ON_ERROR for old behaviour.
New behaviour is for scripts to exit on error instead of returning
to top level and executing the next command.
2012-11-15 21:08:15 +00:00
Peter Stephenson
4b86cc48f7 30726: make shell options passed to emulate stick along with the emulation 2012-10-11 20:14:01 +00:00
Peter Stephenson
4e2cdd7956 30722: fix some cases where emulations or options were not propagated properly
from the emulate command
2012-10-07 19:46:46 +00:00
Peter Stephenson
eb562c9f2c 30715: use enum lextok for variables containing lexical tokens 2012-10-05 21:35:05 +00:00
Peter Stephenson
791ada572b add some braces to avoid compiler warnings 2012-03-30 11:01:11 +00:00
Bart Schaefer
fa8a0e241c 30320: "emulate" accepts invocation-time flags; other small doc tweaks. 2012-03-07 06:10:42 +00:00
Peter Stephenson
9b923cccea 30084: `zle -T tc func' for zle testing of termcap output 2012-01-05 20:01:24 +00:00
Peter Stephenson
731877dd78 30084: missing zsfree(argzero) 2012-01-04 17:50:11 +00:00
Peter Stephenson
d89361739a 29165: use term.h globally if needed at all. 2011-05-09 09:49:08 +00:00
Frank Terbeck
32974286d4 29008, 29012: Add --enable-additional-fpath' option to add arbitrary directories to the default $fpath'. 2011-04-18 20:36:31 +00:00
Bart Schaefer
90b83e028a users/15770 HASH_DIRS tracks INTERACTIVE 2011-02-11 04:04:05 +00:00
Peter Stephenson
a7bc22ca00 Paul 28538 / me 28540 / couple of unposted casts:
use char * for pointer arithmetic rather than void *
2010-12-20 10:28:43 +00:00
Peter Stephenson
76aef28b31 28073: allow #! scripts to search path if interpreter not found 2010-07-15 18:44:12 +00:00
Peter Stephenson
7850fc5a2c 28006: make zgetcwd() fall back to pwd,
only use "." if setting pwd
2010-06-08 08:51:03 +00:00
Peter Stephenson
09960dc5b9 27951: Add $ZSH_EVAL_CONTEXT and $zsh_eval_contxt 2010-05-12 10:06:59 +00:00
Peter Stephenson
53745d8df0 27793 and follow ups: add PATH_SCRIPT option to find script using $PATH 2010-03-16 09:43:51 +00:00
Peter Stephenson
43df0a21c0 27785: IFS doesn't have a null in it in POSIX
unposted: note & needs quoting in :s in glob qualifier
2010-03-11 22:38:58 +00:00
Peter Stephenson
9fe0077305 Geoff: 27693: rename underscore to avoid name clash 2010-02-09 13:58:11 +00:00
Peter Stephenson
8ac97f3308 27648, 267650/1, unposted README change:
Turn off repeat and turn on ulimit in emulation modes
2010-02-03 18:34:32 +00:00
Peter Stephenson
06b7029aa8 27638, based on Frank Terbeck, 27633: SOURCETRACE option 2010-01-27 19:24:22 +00:00
Wayne Davison
693fd5b56e Check the return value of all pipe(), read(), and write() calls.
Gets rid of all the remaining "ignoring return value" compiler
warnings, and makes some read/write operations safer by ensuring
that an EINTR is handled.
2009-12-16 18:39:06 +00:00
Peter Stephenson
3206b8a2ea 27442 plus tweak: wait returns status for $! even if exited 2009-12-02 09:46:12 +00:00
Peter Stephenson
3257f6b8d5 27134: Close SHTTY on exec.
27135: POSIX_JOBS leaves MONITOR on in subshell and doesn't save
parent job table.
2009-07-12 15:09:56 +00:00
Peter Stephenson
bdfebe3e32 27129: fix status at start of function, command subst, etc. 2009-07-11 16:42:53 +00:00
Peter Stephenson
4db28c55b6 27126: a few more contexts where executing empty lists gives status zero 2009-07-10 22:10:25 +00:00
Peter Stephenson
aa563b1a3f 27110: Only turn on MONITOR if set explicitly or INTERACTIVE 2009-07-09 19:42:20 +00:00
Peter Stephenson
b31ca21b46 27100: Allow MONITOR option in non-interactive shells for testing. 2009-07-08 17:06:02 +00:00
Peter Stephenson
041057687f 27083: non-zero status on failures to find or execute file in "." 2009-07-01 15:07:25 +00:00
Peter Stephenson
6f3f3c6a01 26072: lexsave()/lexrestore() to fix bug with sourcing from "funny" places 2009-03-09 15:57:57 +00:00
Peter Stephenson
64d011185a 26583: use HOOK_FUNCTIONS more widely 2009-02-19 10:12:37 +00:00
Peter Stephenson
c7d8b0dfb8 26546, 26556: sticky emulation for functions defined in emulate ... -c ...
environments, plus documentation
2009-02-11 20:42:15 +00:00
Peter Stephenson
2920c227d3 25677: add %x and %I prompt escapes for shell source code debugging
tidy up interface to doshfunc()
2008-09-16 15:02:01 +00:00
Peter Stephenson
d37f9672cb 25651: make getpermtext() output indentation more logical 2008-09-11 17:14:38 +00:00
Peter Stephenson
0cba5ef62a 25595: fix line numbers with EVAL_LINENO,
try to fix oddities with funcstack and sourced files,
simplify use of caller element of funcstack
2008-09-03 09:08:18 +00:00
Peter Stephenson
a5a1296fa0 25448: add $funcfiletrace to show absolute line number for caller 2008-08-13 21:02:02 +00:00
Peter Stephenson
01f5d0a274 25443 (tweaked): allow $functrace to show sourced files 2008-08-12 20:25:14 +00:00
Peter Stephenson
2853ca830a 25247 with further modifications: add $funcsourcetrace 2008-08-11 19:22:54 +00:00
Peter Stephenson
2706eac454 25415: Make DEBUG_BEFORE_CMD the default.
Reuse ERR_EXIT in DEBUG traps.
Clean up trapreturn code.
2008-08-07 16:25:14 +00:00
Peter Stephenson
541e5e2490 25385: fix another bug with trapreturn trampling on status 2008-08-04 19:47:46 +00:00
Peter Stephenson
4fc027edf0 25384: fix problem with incorrect autoloads of zsh/zle 2008-08-04 17:32:19 +00:00
Peter Stephenson
506d73299c fix problems with trapreturn, in particular in source inside trap 2008-08-01 13:53:43 +00:00
Peter Stephenson
0c9830d23c 25345, 25347: neaten interface from main shell to zle 2008-07-31 08:44:16 +00:00
Peter Stephenson
0409391c7d 25272: add zshaddhistory hook 2008-07-17 11:27:55 +00:00
Peter Stephenson
bd70d684fc 25002: only ZLE should update attributes resulting from prompt expansion 2008-05-12 13:50:42 +00:00
Peter Stephenson
c811a18d44 24986: prompt escapes for colours 2008-05-09 17:33:49 +00:00
Peter Stephenson
497a34d249 24894: enable colouring of highlighted text in editor 2008-04-29 17:19:26 +00:00
Peter Stephenson
0f00952d57 24869: Marc Chantreux: make default readnullcmd configurable 2008-04-26 17:46:46 +00:00
Peter Stephenson
bc32da6a67 24786: handle read -t properly in zle via getbyte() 2008-04-03 15:20:18 +00:00
Peter Stephenson
765f73823e users/12305: option output not well documented
-c and SHIN_STDIN inconsistent with manual
2007-12-12 13:46:35 +00:00
Peter Stephenson
0d04d4c312 24120: termcap string memory allocation was screwy 2007-11-26 10:27:59 +00:00
Peter Stephenson
af359d24a4 users/11883: return at top level caused following precommand functions
to return immediately
2007-09-26 10:28:34 +00:00
Peter Stephenson
ab3c63ff9b 23702: fix installing executable scripts
23703: getenv() should be zgetenv()
2007-07-26 08:58:08 +00:00
Peter Stephenson
1b52f47cf2 23665: autoloading of module features and related tweaks 2007-07-06 21:52:38 +00:00
Peter Stephenson
6ab77f00ff 23488: tidy up module interface and documentation 2007-05-29 17:01:07 +00:00
Peter Stephenson
b0c5f09169 see 23479: add initial features support for modules 2007-05-28 22:57:39 +00:00
Andrey Borzenkov
ac1c483496 23409: disable prompt_sp output after ^D was seen and message printed 2007-05-10 11:36:22 +00:00
Peter Stephenson
aa2ae64dff 22983: exit could loop for ever 2006-11-08 17:43:31 +00:00
Peter Stephenson
aba936b17c 22981: Zvi Har'el: bad call from 22952
22980: add hook array for special functions
2006-11-08 10:38:05 +00:00
Peter Stephenson
85fd642711 Vin Shelton: 22789: 22783 broke .zshenv 2006-09-29 20:43:33 +00:00
Peter Stephenson
d061785438 22783: Frank Terbeck: don't load zsh/newuser unless interactive 2006-09-28 09:47:13 +00:00
Peter Stephenson
b477e24aa2 22727: "use 'exit' to exit" was suboptimal 2006-09-17 17:42:56 +00:00
Peter Stephenson
b726ead94e 22676, 22678: extend sched and make it able to run events when waiting for
input
2006-09-10 15:24:26 +00:00
Peter Stephenson
dd5602f59b 22474: use variable argument lists to improve error message handling 2006-05-30 22:35:03 +00:00
Wayne Davison
4cb83571c4 Changed some structures to avoid gcc's type-punned warnings. 2006-03-07 21:30:36 +00:00
Clint Adams
a915138852 22284: add --disable-dynamic-nss configure switch to disable use of getpw*(), getgr*(), initgroups() functions. 2006-02-19 19:36:31 +00:00
Peter Stephenson
30176eaf63 22198: do always set HOME in native emulation 2006-02-07 11:29:30 +00:00
Peter Stephenson
8b0cc87817 22195: don't set HOME in the shell 2006-02-06 11:57:03 +00:00
Peter Stephenson
bf3ee0f725 22049: bug exiting from sourced file within function 2005-12-03 00:14:05 +00:00
Wayne Davison
d8838293f5 Changed two zle functions to each return a char pointer, not an
unsigned char pointer.
2005-11-15 08:44:21 +00:00
Peter Stephenson
409296e22f 21736: improve tests for word and identifier characters with multibyte input 2005-09-20 15:10:26 +00:00
Peter Stephenson
7746eea52b adapted from 21719: add some mod_exports 2005-09-09 16:06:47 +00:00
Peter Stephenson
d39b9fabdb 21709 plus tweaks: use $KEYTIMEOUT for multibyte chars.Reset input state on invalid characters or EOF 2005-09-09 11:48:27 +00:00
Peter Stephenson
aa638fec26 21577 (adapted): Dan Bullok: improved window resize handling, again 2005-08-09 09:33:37 +00:00
Peter Stephenson
e3c5dd2dd9 21498: Add zsh/newuser module 2005-07-20 16:08:12 +00:00
Wayne Davison
b1e0d218c5 Reference 4 extra termcap items: save-cursor, restore-cursor, the
backspace character, and the ignore-newline-after-wrap flag.
2005-07-15 17:41:53 +00:00
Bart Schaefer
92d5a511be Prevent double precmd during "fc -e -" 2005-06-13 14:59:33 +00:00
Peter Stephenson
7b9cff2754 21131: exit with status 127 when script not found 2005-04-11 10:23:55 +00:00
Clint Adams
5571605340 * 21124: Src/Zle/zle_main.c, Src/init.c, Src/params.c: have zle cache a
wide-char version of WORDCHARS each time it's changed (when ZLE_UNICODE_SUPPORT
 is defined).
2005-04-08 16:42:55 +00:00
Peter Stephenson
b51472dd5f 21078: parse errors didn't cause non-zero exit status 2005-04-01 10:16:59 +00:00
Peter Stephenson
38eb8ac293 21049: Don't close process substitution file descriptors for external programmes 2005-03-31 09:54:54 +00:00
Peter Stephenson
aaec0ef0ad 20798: propagate an #ifdef to prototypes 2005-02-07 15:53:13 +00:00
Peter Stephenson
6ab69b60c9 20794: Change version to 4.3.0-dev-1
Don't compile in a static in init.c unless needed.
2005-02-07 12:33:48 +00:00
Peter Stephenson
88a37cc187 c.f. 20675: improve zle as a basis for Unicode.
unposted: update version to 4.2.3-dev-1
2005-01-14 13:04:47 +00:00
Peter Stephenson
cc72740775 20462: Use getrusage for timing again.
Time processes from before rather than after fork.
2004-10-07 09:45:43 +00:00
Bart Schaefer
2e9bbdc833 20387: revised algorithm for the fix in 20363. 2004-09-20 13:37:41 +00:00
Peter Stephenson
1268f477b0 20363: Src/init.c, Src/Zle/zle_main.c 2004-09-13 13:04:39 +00:00
Peter Stephenson
86ae90bc1c 20149: improve prompt-reset code
20150: commit ancient memory leak fix(?) in completion
2004-07-11 22:53:01 +00:00
Wayne Davison
fb0937a69e Marked unused parameters with the new UNUSED() macro. 2004-06-02 22:14:25 +00:00
Peter Stephenson
b8859fefcc 19505: compilation with NTTYDISC defined was broken. 2004-03-01 11:50:50 +00:00
Peter Stephenson
6eb5f99f1e 19295: $CONTEXT zle parameter 2003-12-15 22:45:27 +00:00
Peter Stephenson
a6a63a147e 19242: Make job table dynamically reallocatable. 2003-11-13 14:34:33 +00:00
Peter Stephenson
815bc92148 a la 19209: zcalloc -> zshcalloc 2003-10-29 19:17:30 +00:00
Peter Stephenson
58bad19411 19105: Set shout to stderr if interative with no tty 2003-09-22 13:46:03 +00:00
Peter Stephenson
3ffb3ad2f2 19014: add alias -s suf=handler 2003-09-03 10:15:32 +00:00
Peter Stephenson
4e309d2cdd 18539 and remaining bits of 18536???: vi and emacs options, autoload zle 2003-05-15 09:23:08 +00:00
Peter Stephenson
62719196b2 18536: EMACS and VI compatibility options 2003-05-14 15:09:14 +00:00
Peter Stephenson
5b5c0175d5 IKEGAMI Tsutomu: sf bug 722366: metafy pwd when read from $PWD 2003-04-23 18:04:05 +00:00