1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-05-26 09:56:05 +02:00
Commit Graph

147 Commits

Author SHA1 Message Date
Barton E. Schaefer 65e131c838 31879 plus misc.: improve $pipestatus handling and add a test for it 2013-10-23 22:45:02 -07:00
Peter Stephenson 5236425865 users:18023: Add PIPEFAIL option 2013-10-06 21:35:27 +01:00
Peter Stephenson cda21a28e6 31536 with additions: Fix hang in previous process substitution fix.
Close applicable file descriptors when waiting for a job.
2013-07-19 12:09:32 +01:00
Peter Stephenson 3c5732223f 31528: use job table to record file descriptors associated with process subst 2013-07-17 21:33:16 +01:00
Bart Schaefer daa9e1fd54 users/17042: don't stomp the environment in "jobs -Z" unless we've first
copied it to new memory.
2012-11-18 18:27:18 +00:00
Peter Stephenson ad92cb3203 30724: shell code optimisd to use execsimple() doesn't have a valid thisjob 2012-10-11 16:36:14 +00:00
Peter Stephenson 8e43f7f3c8 30687 with typo corrected: don't REPORTTIME if zleactive 2012-09-21 12:45:12 +00:00
Peter Stephenson d64e62ef11 Danek: 30485: trailing garbage after signal number not recognised in kill 2012-05-22 08:57:22 +00:00
Peter Stephenson b8d7e068fc 30410 plus one other case: avoid divide-by-zero errors
in TIMEFMT interpretation
2012-04-15 13:46:35 +00:00
Peter Stephenson ca7269e82d users/16289: don't delete temporary files on disown.
Document.
2011-08-28 16:38:28 +00:00
Wayne Davison 2c9b4e769f 29650: Don't lose time info after a suspend+restore. 2011-08-16 15:27:05 +00:00
Mikael Magnusson 8af2cbd1f2 unposted: fix capitalized word in the middle of a sentence 2011-08-14 14:21:27 +00:00
Bart Schaefer 92ee9324a9 29654: "wait" should resume stopped jobs identified by process ID as well
as by job number; temporary (?) workaround for pipelines getting lost if
TSTP is delivered when a shell builtin is the tail of the pipe.
2011-08-10 03:21:15 +00:00
Bart Schaefer 98b29d02ca 29481: always return a matching job in findproc() but scan the whole list
to prefer running jobs
2011-06-15 15:38:14 +00:00
Bart Schaefer 21c39600ef 29472: findproc() needs at least to also return stopped jobs. 2011-06-12 15:06:37 +00:00
Mikael Magnusson 72cb7cfc6f 29307, 29308 + replies: Fix some doubled words in docs and comments. 2011-05-19 16:10:46 +00:00
Peter Stephenson d89361739a 29165: use term.h globally if needed at all. 2011-05-09 09:49:08 +00:00
Peter Stephenson 47d1215cb4 Stef van Vlierberghe: 28965 (as posted in 28967):
findproc() should not return processes not marked as SP_RUNNING
2011-04-01 11:02:15 +00:00
Peter Stephenson c7ff1b79dd 28179, users/15314, users/15310, users/15200:
various job and process control fixes
2010-08-22 20:08:57 +00:00
Peter Stephenson ef9b4ad79e 28172: mark processes as not stopped if sent SIGCONT 2010-08-18 21:21:17 +00:00
Peter Stephenson fc7ad5cc1c users/15219: PRINTEXITVALUE if terminated by signal 2010-07-31 22:03:41 +00:00
Peter Stephenson 5659426c2a always print job status if non-zero status and PRINTEXITSVALUE 2010-07-31 21:06:10 +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 500431077b Apple opensource patches suggested by Jun T. in 27300 2009-09-30 20:32:18 +00:00
Bart Schaefer bda90c969f 27159: restore pre-23067 behavior of SIGINT outside a "wait", so that
foreground jobs that handle or ignore interrupts are not orphaned.
2009-07-20 04:38:56 +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 653d6a0dd9 27131: allow MONITOR in subshell by not closing SHTTY 2009-07-11 19:06:51 +00:00
Peter Stephenson 73be7ee553 27106: reset status on command that expands to empty
27122: add POSIX_JOBS option
2009-07-10 11:08:39 +00:00
Peter Stephenson bd2ee44b78 27119: job output to stdout if non-interactive
no automated jobs notifications
2009-07-10 09:10:59 +00:00
Peter Stephenson 5df700fb5b 27112: allow jobbing output if not interactive 2009-07-09 20:33:56 +00:00
Bart Schaefer 14e7096982 users/13937, users/13939: configure.ac, Src/jobs.c: check for
and if available use setproctitle() for "jobs -Z".
2009-03-16 05:20:36 +00:00
Peter Stephenson f0bcd0ecd0 users/13910: spawnjob() should output to tty 2009-03-14 20:30:09 +00:00
Peter Stephenson 0c9830d23c 25345, 25347: neaten interface from main shell to zle 2008-07-31 08:44:16 +00:00
Peter Stephenson a9ad660bd3 users/12812: fix hang with confusion over process numbers 2008-05-02 22:48:58 +00:00
Peter Stephenson 845faf5586 22281: wait shouldn't return immediately on signal unless trapped 2008-03-25 18:17:07 +00:00
Peter Stephenson 1ee6295909 24279: allow terminal changes after zle -I to be acquired by main shell 2007-12-18 10:42:36 +00:00
Peter Stephenson f5a6b2a8c9 users/11818: allow non-numeric keys for job status parameters 2007-09-05 16:16:15 +00:00
Peter Stephenson e85760e05e users/11807: fix some job display bugs 2007-09-04 20:43:52 +00:00
Peter Stephenson 1b52f47cf2 23665: autoloading of module features and related tweaks 2007-07-06 21:52:38 +00:00
Peter Stephenson fcd2c9243f 23460: fix problem with ( stuff ) >multio1 >multio2 2007-05-23 11:21:10 +00:00
Peter Stephenson 38cdf73794 unposted: uninitialized variable in 23238 2007-03-27 15:16:56 +00:00
Peter Stephenson 9fb47cff9d 23238: jobs didn't get deleted if they weren't printed 2007-03-27 10:56:53 +00:00
Peter Stephenson a1476c1ee2 23141: don't zrfresh() after printjob() that didn't print 2007-01-30 19:03:45 +00:00
Peter Stephenson 553e011320 23118: improve sorting to make it work with locales 2007-01-21 22:47:36 +00:00
Peter Stephenson 8b800f8fd1 document OS may handle negative or zero PID in kill 2006-12-19 10:35:54 +00:00
Peter Stephenson b5a0b49dff 23054, part: error message for "kill -" with nothing after the - was confusing 2006-12-18 11:16:00 +00:00
Peter Stephenson da0dfc62df fix error message 2006-11-06 12:49:20 +00:00
Peter Stephenson ebc76673aa 22953: Mikael Magnusson: _most_recent_file fix.
users/10928: send all "jobs" output to stdout
2006-11-03 19:44:47 +00:00
Peter Stephenson ff9f2bb88e 22913: set $! on "bg" 2006-10-30 10:37:17 +00:00
Peter Stephenson 6157c14d06 22525: lengths and cases of multibyte strings in parameters and history 2006-06-28 13:12:55 +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 41fb468fca Fixed a compilation problem when HAVE_GETRUSAGE is defined
but HAVE_WAIT3.  See the sourceforge bug report:
https://sourceforge.net/tracker/?func=detail&atid=104068&aid=1262954&group_id=4068
2006-03-27 11:41:17 +00:00
Peter Stephenson 31f6b3fb07 22317: exit status from code backgrounded in function
22277, 22281, tweaks: standardize behaviour of wait builtin
with trapped signals
2006-03-02 22:05:21 +00:00
Peter Stephenson ba8349e6ed 22200: process text wasn't unmetafied for output. 2006-02-07 16:55:09 +00:00
Peter Stephenson 4a2f8d92e7 21872: job accounting in subshells was screwy 2005-10-13 17:49:59 +00:00
Bart Schaefer 495f177f3a 21366: LONG_LIST_JOBS applies to more places where job listings are printed 2005-08-15 03:28:39 +00:00
Peter Stephenson a6660cadc6 21391: only pass SIGINT and SIGQUIT from foreground processes to the shell. 2005-06-28 09:37:21 +00:00
Peter Stephenson 772007e76c 21296: Add ERR alias for ZERR where possible.
"trap" reports alias names.
2005-06-01 10:45:32 +00:00
Peter Stephenson af1c6ecdc7 20888: allow signal names to have the SIG prefix included 2005-02-28 14:29:09 +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 5141e68daa 20572: Allow alternative signal names 2004-11-22 10:33:03 +00:00
Wayne Davison 106329c82e Fixed an arg in a call to times() (from Borzenkov Andrey). 2004-10-22 19:38:59 +00:00
Peter Stephenson feca88ede6 20513: fix tests of zero-length patterns
trivial optimisation in jobs.c (unposted)
2004-10-22 15:36:35 +00:00
Peter Stephenson 8a67a66a61 20467: Reintroduce rusage-based escapes for TIMEFMT. 2004-10-08 14:36:51 +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
Wayne Davison fb0937a69e Marked unused parameters with the new UNUSED() macro. 2004-06-02 22:14:25 +00:00
Wayne Davison f160996d51 Changed a few job-table variables into ints. 2004-05-28 19:16:55 +00:00
Peter Stephenson 5ac05cab9f 19976: fix spurious job table full messages 2004-05-25 18:38:56 +00:00
Peter Stephenson 885509c023 Fix TRAPS_ASYNC so that it handles signals correctly. 2004-05-02 19:55:54 +00:00
Peter Stephenson 5747147aff 19809: improve NO_TRAPS_ASYNC by queueing traps alone 2004-04-21 11:18:45 +00:00
Peter Stephenson b5ceb73026 zsh-users/7365: new TRAPS_ASYNC option 2004-04-19 16:02:17 +00:00
Peter Stephenson ce41b8785b 19427: last job in jobs wasn't reported. 2004-02-17 10:41:24 +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 94da86f795 18492: Provide partial fix for multios and output process substitution
asynchronicity problem.  Document workarounds for remaining problems.
2003-05-02 10:25:27 +00:00
Peter Stephenson a7dc5d386c 18319: Philippe Troin: fix use of process groups with su and suspend 2003-03-07 12:17:49 +00:00
Peter Stephenson ee7bdbf85d 18264: free job table entries properly in subshell 2003-02-21 14:37:03 +00:00
Peter Stephenson 9634760d5e 17582: Improved option argument handling.
unposted: Updated version to 4.1.0-dev-6 because of interface change.
2002-08-27 21:10:30 +00:00
Peter Stephenson f60279ae24 17516, 17517: Attempted fixes for memory leaks shown by valgrind.
First with zstyle patterns, second with pwd in job structure.
2002-08-08 10:43:50 +00:00
Peter Stephenson 5ef61a44b1 17265: make the jobs command work in subshells 2002-06-05 14:57:05 +00:00
Oliver Kiddle 1b608e1b9a 16372: allow signal names to be prefixed by `SIG' with kill builtin and fix
problem with no argument to kill -n and -s options
2001-12-21 16:33:39 +00:00
Oliver Kiddle d39feeffc4 16224: add -n option to kill and complete options from _kill 2001-11-06 15:06:59 +00:00
Sven Wischnowsky b275190ff4 add autocontinue option to automatically make stopped jos running when they are being disowned; make that the default for `%job &!' and `%job &|' (15115) 2001-06-27 11:22:04 +00:00
Sven Wischnowsky 2ca99605ed make warning message for disowning stopped jobs more verbose (saying how to make the job running again) (15087) 2001-06-26 08:18:22 +00:00
Sven Wischnowsky 1bb5d5aeb5 print at least a warning when disowning a stopped job (14524) 2001-05-29 09:49:58 +00:00
Sven Wischnowsky fbe44ac838 more (|un)queue_signals(), this time for the job control builtins (13509) 2001-02-20 09:16:46 +00:00
Sven Wischnowsky 757168e2c8 remove 13108 (trap queues); replace with signal queueing to ensure that user signal handlers are only executed when it is safe to run them (13365) 2001-01-16 13:44:18 +00:00
Peter Stephenson f39af3954f Rename waitjob() to zwaitjob(). 2000-12-06 12:22:39 +00:00
Peter Stephenson c292a3ae50 Sven: 13108: Handle traps synchronously
pws: 13109, 13111: clear up zle display when output produced in trap.
2000-11-11 19:50:27 +00:00
Sven Wischnowsky da9b5bb81a show current/previous job in $jobstates (3503) 2000-11-02 08:12:44 +00:00
Clint Adams 4225207e4c 12860: don't limit size of pwd in job table 2000-09-22 22:28:05 +00:00
Bart Schaefer b7c6421796 The `wait' builtin accepts only PIDs it can find in the job table. 2000-07-28 16:35:47 +00:00
Sven Wischnowsky 82ca135d34 fix for jobs -l -d, check if directory of job is already set (11170) 2000-05-05 07:18:59 +00:00
Peter Stephenson 4852545255 Updated from list as far as 10376 2000-04-01 20:49:47 +00:00
Tanaka Akira e74702b467 Initial revision 1999-04-15 18:05:38 +00:00