1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-05 08:41:15 +02:00
Commit graph

1365 commits

Author SHA1 Message Date
Wayne Davison
9937c30ba3 21581: Thorsten Dahlheimer: Src/builtin.c: fixed error output
for unknown signal names when using "trap -".
2005-08-09 05:41:55 +00:00
Wayne Davison
756bea5ffa Fixed a recently-introduced bug where printf %b with an empty arg
would output a single space instead of nothing.
2005-08-08 23:06:20 +00:00
Peter Stephenson
5587d05958 unposted: unnecessary variable in 21575 2005-08-08 17:01:17 +00:00
Peter Stephenson
d307660dee 21575 plus unposted: Add WARN_CREATE_GLOBAL option 2005-08-08 16:48:52 +00:00
Peter Stephenson
d7902f6bad 21567: Dan Bullok: trashzle on updating window size 2005-08-08 10:36:51 +00:00
Peter Stephenson
15d4118cb9 21557: Thorsten Dahlheimer: BRACE_CCL fix 2005-08-02 09:23:38 +00:00
Wayne Davison
ea0a5b2662 Silenced a compiler warning about a variable that might be used
unassigned.
2005-08-01 22:20:36 +00:00
Peter Stephenson
1f3bd88afb 21552: Thorsten Dahlheimer: various fixes to print builtin 2005-08-01 10:00:38 +00:00
Peter Stephenson
8c095a5169 unposted: Perforce "attribute" command
21551: FEATURES description for file<20->
21546: oddities of subscripts when searching arrays
21544: ioctl() prototyping
2005-08-01 09:54:55 +00:00
Peter Stephenson
8665549030 21541: remove some warnings from ZLE_UNICODE_SUPPORT 2005-07-28 14:45:32 +00:00
Wayne Davison
4714ce0856 The PROMPT_SP output should be prior to the job notifications too. 2005-07-27 18:44:26 +00:00
Wayne Davison
cbdcd62b38 Moved the PROMPT_SP output into preprompt() so that it takes effect
prior to things like precmd(), the mail-check output, etc.
2005-07-26 22:50:49 +00:00
Wayne Davison
d355573c48 Moving the PROMPT_SP code earlier in the scheme of things so that
it can take affect prior to things like the mail-check output.
2005-07-26 22:46:10 +00:00
Clint Adams
e6fdd78a18 21529: move scriptdir to a scripts subdir, and don't include Scripts in fpath. 2005-07-26 15:01:40 +00:00
Wayne Davison
b77b51cda8 Fixed bin_print() to handle \c escapes as per POSIX (truncating the
output at the \c).  (Based on a patch by Thorsten Dahlheimer.)
2005-07-26 00:07:11 +00:00
Wayne Davison
fa8923e1f9 If getkeystring() finds a \c escape (when looking for such escapes),
truncate the returned string at the escape.
2005-07-26 00:07:08 +00:00
Wayne Davison
03531ff379 The parsing of \c in $foo[(pws:\c:)1] should treat \c as an unknown
escape (resulting in a literal "c"), not remove the sequence (from
a patch by Thorsten Dahlheimer).
2005-07-24 05:37:23 +00:00
Wayne Davison
6e80eb1a4c Improved the function comment for getkeystring(). 2005-07-24 05:19:58 +00:00
Wayne Davison
c71813ef45 Added missing "goto" in handling of 'c' escape (fix from
Thorsten Dahlheimer).
2005-07-24 04:54:54 +00:00
Wayne Davison
17b224a549 An install fix for Cygwin from Thorsten Dahlheimer. 2005-07-24 04:47:57 +00:00
Peter Stephenson
625b1dfd74 unposted: bring various .distfiles up to date 2005-07-21 13:45:23 +00:00
Peter Stephenson
3d5bececac 21500: Add script and function as framework for new user stuff. 2005-07-20 18:08:39 +00:00
Peter Stephenson
e3c5dd2dd9 21498: Add zsh/newuser module 2005-07-20 16:08:12 +00:00
Wayne Davison
767e017e1f Implement the new PROMPT_SP option. 2005-07-15 17:41:55 +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
Wayne Davison
85784fbfee Add "promptsp" to the optname optns[] array. 2005-07-15 17:41:50 +00:00
Wayne Davison
9ba458948a Added the PROMPTSP option plus 3 new termcap defines
(TCSAVECURSOR, TCRESTRCURSOR, and TCBACKSPACE).
2005-07-15 17:41:33 +00:00
Peter Stephenson
b2cfbabced 21466: mkdir -p didn't work with symlinks 2005-07-14 20:20:11 +00:00
Bart Schaefer
5af2ab3b9c 21428: Travis: fix crash on bad compvalues call 2005-07-12 03:07:22 +00:00
Peter Stephenson
75f853f2e3 21402: Fix crash with case-insensitive matching. 2005-07-06 10:01:19 +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
Oliver Kiddle
6245d3e32f 21317: fix bug where recursive glob within e qualifier would hang the shell 2005-06-21 08:58:43 +00:00
Oliver Kiddle
14bfaab3ef 21352: Harald van Dijk: handle null after % in printf format specifier 2005-06-17 08:37:46 +00:00
Bart Schaefer
92d5a511be Prevent double precmd during "fc -e -" 2005-06-13 14:59:33 +00:00
Peter Stephenson
b4855d742c unposted: need const for result of getsigname() 2005-06-01 13:59:14 +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
3acf90f67e 21270: don't use poll() on Apple 2005-05-23 14:41:16 +00:00
Peter Stephenson
8a24c5a5ee users/8856, users/8863: which-command stuff 2005-05-23 10:11:18 +00:00
Oliver Kiddle
af31bd1741 Joerg Sonnenberger: 21252: Dragonfly BSD support 2005-05-11 09:27:05 +00:00
Peter Stephenson
4fc0fadfaa Add [[:IFS:]] etc. tests. 2005-05-09 10:46:08 +00:00
Peter Stephenson
2c208c7743 21197: Fix LOCAL_TRAPS inside another trap 2005-04-27 09:58:42 +00:00
Peter Stephenson
ba1a545516 21194: fix handling of zero-length quoted test strings for patterns 2005-04-26 09:51:27 +00:00
Peter Stephenson
b72a946185 Fix handling of metafied characters in trailing whitespace on read 2005-04-25 10:18:25 +00:00
Bart Schaefer
38d2734e0a Remove excess argument of zwcstat() 2005-04-24 18:39:02 +00:00
Bart Schaefer
813cb26e40 21174 adjustments to 21170 2005-04-24 18:38:38 +00:00
Peter Stephenson
5733e942f5 Optimise length calculations for ${...//.../...} 2005-04-24 00:38:07 +00:00
Geoff Wing
e71c9f6c01 20162: in printlist() don't output new line if we haven't printed anything 2005-04-22 02:46:40 +00:00
Peter Stephenson
d6089cc8b1 21143: more care about special file descriptors 2005-04-15 10:40:01 +00:00
Peter Stephenson
c69b149cb5 21141: fix some issues associated with the {myfd}>... syntax 2005-04-14 16:24:42 +00:00
Peter Stephenson
b3f8e32e5c 21133: New {myfd} syntax for allocating file descriptors 2005-04-12 15:11:07 +00:00
Peter Stephenson
7b9cff2754 21131: exit with status 127 when script not found 2005-04-11 10:23:55 +00:00
Clint Adams
56cb95d1dd * 21125: Src/Zle/zle_main.c: do an initial conversion when zle is loaded. 2005-04-08 16:58:09 +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
8776b52d7d Toby Peterson: 21083: RLIMIT_AS and RLIMIT_RSS are the same in Mac OX X
ut_name needs to be ut_user in struct utmpx
2005-04-04 09:58:44 +00:00
Peter Stephenson
82c9c7a423 21082: Dan Nelson: fix zsh -c exit status on parse error 2005-04-04 09:35:36 +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
24699f961d 21045: fix some uses of Meta characters in completion 2005-03-21 18:49:04 +00:00
Peter Stephenson
5d7ee7574a 21042: limitations with execute-named-command 2005-03-21 17:07:25 +00:00
Wayne Davison
bb738368ba Honor the setting of the new HISTSAVEBYCOPY option when rewriting
the history file.
2005-03-18 22:40:28 +00:00
Wayne Davison
5d07d6db9a Added the histsavebycopy option. 2005-03-18 22:40:26 +00:00
Wayne Davison
e6435dcca6 Added HISTSAVEBYCOPY to the options enum. 2005-03-18 22:40:23 +00:00
Peter Stephenson
63f6742e9a 21014: remember_edits() was broken 2005-03-18 18:27:51 +00:00
Peter Stephenson
51ec0b8079 20983: failed glob from fixed strings segments in globbed paths 2005-03-16 11:50:50 +00:00
Peter Stephenson
31aaabe1bc 20978: don't propagate EOF from recursive edits 2005-03-15 10:50:58 +00:00
Bart Schaefer
65f01182b9 Belated commit of 20892: improvements to correct/correctall behavior. 2005-03-11 15:22:10 +00:00
Peter Stephenson
15b78be794 20966: fix crash in execute-named-command 2005-03-11 10:33:39 +00:00
Peter Stephenson
43d480057b 20959: fix crash unloading zsh/parameter and test the fix 2005-03-10 17:55:37 +00:00
Peter Stephenson
7208c4024e 20955: "unset foo" should return status 0 if foo was not set 2005-03-09 17:13:59 +00:00
Peter Stephenson
9edff429d8 20945: rename statics to avoid clash with globals 2005-03-07 11:11:18 +00:00
Peter Stephenson
7fb20a71cb correct 20928 2005-03-04 21:40:37 +00:00
Peter Stephenson
d4c948bdd0 20928: null terminate screen lines in zle_refresh.c 2005-03-04 21:34:28 +00:00
Oliver Kiddle
1b50dff802 20921: using UCS-4BE instead of ISO-10646 to identify character encoding
is more portable, find more encodings in iconv completion on Solaris
20924: make error message more specific
2005-03-03 14:13:03 +00:00
Clint Adams
4a007b41d7 * 20911: Src/Modules/termcap.c: and set affcnt to 1 unconditionally
when we echotc a capability with arguments (which we then assume to
be the 'cm' capability, with arguments in the form <rows> <columns>.
2005-03-02 16:13:35 +00:00
Clint Adams
27c52ad072 * 20909: Src/Modules/termcap.c: reverse row and col arguments to tgoto. 2005-03-02 15:12:25 +00:00
Peter Stephenson
af1c6ecdc7 20888: allow signal names to have the SIG prefix included 2005-02-28 14:29:09 +00:00
Andrey Borzenkov
ae6c23ae2c 20872: fix ZS_{icntrl,tolower} vs. ZC_{incntrl,tolower} confusion 2005-02-26 07:40:54 +00:00
Peter Stephenson
f7ceca4fec 20869: more small Unicode tweaks 2005-02-25 15:10:01 +00:00
Peter Stephenson
ddd172ebe2 20863: fix history (i)searching for Unicode 2005-02-25 10:20:38 +00:00
Peter Stephenson
29b6b82ade 20866: fix deliberate errors in 20861 2005-02-24 21:10:44 +00:00
Oliver Kiddle
ebe071866d 20862: attempt to fix configure scripts to detect iconv properly 2005-02-24 16:53:07 +00:00
Peter Stephenson
691dd7e529 20861: Fix statusline in Unicode, apart from isearch 2005-02-24 15:32:36 +00:00
Andrey Borzenkov
c4a4c1340a 20857: rewrite zle_refresh to use wide characters. 2005-02-23 16:29:56 +00:00
Peter Stephenson
0da7162ed6 20856: use VARARR for multibyte string. 2005-02-23 13:59:33 +00:00
Peter Stephenson
d9137fd4b6 20854: more Unicode stuff. 2005-02-23 13:50:09 +00:00
Andrey Borzenkov
70f9279060 20845: fix mbstate_t usage in getrestchar 2005-02-22 21:36:40 +00:00
Peter Stephenson
85b63c0c03 20844: prune trailing slashes from named directory 2005-02-22 18:23:16 +00:00
Peter Stephenson
b83f0e2290 Andrej: 20838: get ZLE_UNICODE_SUPPORT basically working 2005-02-22 13:12:35 +00:00
Peter Stephenson
ee5aada47b 20833: typo: int_t -> wint_t 2005-02-21 11:18:49 +00:00
Peter Stephenson
e34d2df070 20828: typos in 20822 2005-02-18 17:30:55 +00:00
Peter Stephenson
d7c13fb2c3 20822: Initial code for Unicode/multibyte input
20823: Debugging test in stat wrong for 64-bit systems
2005-02-18 13:57:25 +00:00
Peter Stephenson
213dc8b210 20816: update rlimits for new glibc 2005-02-16 17:40:29 +00:00
Peter Stephenson
20018230ee 20812: Add functions for exception handling 2005-02-15 18:31:41 +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
05b06b1c08 fix autoloaded trap bug; rejig use of trapfuncs
(now traplists); improve trap tests
2005-02-06 20:36:09 +00:00
Bart Schaefer
facf0309bb 20774: fix e.g. "FOO=BAR BAR=FOO echo" failure to unset FOO after finishing. 2005-02-02 04:51:13 +00:00
Peter Stephenson
d1d6742848 20759, 20760, 20765: Improve Cygwin configuration 2005-02-01 10:52:50 +00:00
Clint Adams
efab849310 * 20753: use ZS_memmove instead of memmove. 2005-01-26 18:37:28 +00:00
Peter Stephenson
85e0b5f377 20752: fix access to ZLE parameters 2005-01-26 18:12:08 +00:00
Clint Adams
3934f7a402 * 20751: Src/Zle/zle_refresh.c: use '?' for character conversion error 2005-01-26 14:29:12 +00:00
Clint Adams
9453ea957e * 20747: some wide char support in the zle refresh code. 2005-01-26 13:39:46 +00:00
Peter Stephenson
77bd05014d 20750: fix hang with 20742 2005-01-26 12:34:31 +00:00
Peter Stephenson
efd03cf9e8 20742: More Unicode conversion stuff. 2005-01-25 16:40:41 +00:00
Peter Stephenson
b80c6b0863 users/8422: [[ ... -nt ... ]] with bad stat caused
mayhem in initialisation files, functions, etc.
2005-01-24 11:02:59 +00:00
Clint Adams
8ae8a91b8b * 20736: Src/Zle/zle_utils.c: change zlegetline() to return a metafied string. 2005-01-22 16:26:32 +00:00
Clint Adams
0038b1a682 * 2073x: Src/Zle/zle_utils.c, Src/hist.c: modify zlegetline() and zlegetline
caller so that the octet-based and wide-character versions should return
   the same string.
2005-01-22 04:03:05 +00:00
Wayne Davison
2fb65d215f Fixed compiler warning about a missing initializer. 2005-01-21 11:16:34 +00:00
Wayne Davison
e63e45ae62 Got rid of "unused parameter" compiler warning for nullsethashfn(). 2005-01-21 11:15:36 +00:00
Peter Stephenson
f8d74c1aab 20728: add RLIMIT_SIGPENDING and RLIMIT_MSGQUEUE,
also use ulimit -x for RLIMIT_LOCK
2005-01-19 13:03:33 +00:00
Clint Adams
7c2424d022 * 20718: Src/Zle/zle_utils.c: minor cleanup for proto-Unicode stuff. 2005-01-16 16:24:28 +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
81b9354238 users/8359: add Darwin completion directories by default 2005-01-12 17:28:58 +00:00
Oliver Kiddle
df7ffd2999 20701: fix compilation on Mac OS X: define is __APPLE__, not APPLE 2005-01-12 16:34:31 +00:00
Peter Stephenson
77166e259e 20695: Fix Cygwin problem with initialising from pointer to imported variable 2005-01-12 12:18:58 +00:00
Peter Stephenson
43ac170305 Fix .distfiles and .cvsignore 2005-01-12 10:53:06 +00:00
Clint Adams
8db6e42ecd * 20657: Src/Zle/zle_tricky.c: sort completions partially based on LC_COLLATE setting. 2005-01-11 18:24:51 +00:00
Bart Schaefer
2bc51c9dbc 20666: Avoid creating unnecessary multios when a descriptor is closed and
then re-opened.
2005-01-11 17:09:19 +00:00
Peter Stephenson
a92d2d84c0 20661: *(+func) = *(e:func:) 2005-01-10 17:31:07 +00:00
Peter Stephenson
849b808da6 20632: incorrect propagation of signals to process group 2005-01-05 11:04:21 +00:00
Peter Stephenson
69b4b8bdde 20605: Use separate structure with get/set/unset methods fro parameters.
Separate justification width of parameters from base/precision.
2004-12-07 16:54:58 +00:00
Wayne Davison
bb78896c7f A few minor style tweaks (as discussed in 20595 and 20596). 2004-12-01 18:18:23 +00:00
Wayne Davison
8b136c84d2 Corrected the error-return comment for zchdir() and optimized the
HAVE_FCHDIR error-return code.
2004-11-29 16:26:12 +00:00
Peter Stephenson
d2c67e5e19 20591: Stephane Chazelas: use of fchdir in zchdir leaked fd's 2004-11-29 12:09:13 +00:00
Peter Stephenson
cebe5f1d10 20592: Debian bug#283358: $((##)) failed erratically 2004-11-29 12:07:04 +00:00
Peter Stephenson
138c5df2bb 20576: fix core dump on TRAPEXIT 2004-11-23 16:29:50 +00:00
Peter Stephenson
5141e68daa 20572: Allow alternative signal names 2004-11-22 10:33:03 +00:00
Peter Stephenson
c1a3961657 20568: debug test in pattern.c was out of date 2004-11-19 15:15:23 +00:00
Peter Stephenson
e022a9814a 20566++: prefer SIGCHLD to SIGCLD and SIGPOLL to SIGIO 2004-11-19 09:57:22 +00:00
Peter Stephenson
ba32e52292 users/8219: add $HISTCMD 2004-11-16 19:05:50 +00:00
Peter Stephenson
fece5e8960 20556: change SOCKLEN_T to ZSOCKLEN_T to avoid clash 2004-11-16 11:04:25 +00:00
Bart Schaefer
33686bdc98 fix "compadd -k assoc1 assoc2" 2004-11-05 16:19:19 +00:00
Peter Stephenson
f9c66cd45e 20528: exec 8>>(grep a) waited incorrectly for grep to finish 2004-10-29 10:14:21 +00:00
Peter Stephenson
c8e70ab5cf 20522: must-match optimisation in parameter substitution broken 2004-10-26 17:20:21 +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
Wayne Davison
3ccc3e4bdc Use the new gettempfile() function. 2004-10-21 00:33:50 +00:00
Wayne Davison
65729f5570 Added gettempfile(), which works like a custom mkstemp() (in addition
to the existing gettempname(), which works like a custom mktemp()).
2004-10-21 00:33:42 +00:00
Wayne Davison
7f1ad7a40e Added bicat() that works like dyncat(), but uses permanent memory
instead of the heap.
2004-10-18 19:13:57 +00:00
Wayne Davison
8901caa58f Call gettempname() with its new args. 2004-10-18 19:07:55 +00:00
Wayne Davison
9a4cf8cf72 - Fixed an unsafe use of gettempname().
- Call gettempname() with its new args.
2004-10-18 19:07:50 +00:00
Wayne Davison
1637c4eba6 Made gettempname() take a prefix arg and a use_heap arg. When prefix is
non-NULL, it uses the specified prefix instead of $TMPPREFIX.
2004-10-18 19:07:46 +00:00
Wayne Davison
945a40f7e6 - Improved lockhistfile() to use the new gettempname() for a unique
filename instead of a .PID suffix.
- Use bicat() to build the $HISTFILE.LOCK filename.
- Put the $HOST value into $HISTFILE.LOCK in addition to the PID.
2004-10-18 19:07:30 +00:00
Peter Stephenson
b115ca307a 20500: Unmetafy patterns where possible and other minor pattern fixes 2004-10-18 11:56:14 +00:00
Wayne Davison
0d6e174e23 Made zclose() avoid calling close() when fd < 0. 2004-10-18 03:32:16 +00:00
Wayne Davison
66baaced5d In zleread(), initialize the first byte of the "line" buffer to '\0'
so that functions such as magicspace() won't be accessing uninitialized
memory when they look at "line".
2004-10-17 20:12:46 +00:00
Peter Stephenson
a82a2564dd 20490: Don't assume null termination for test string in pattern matching. 2004-10-15 10:21:02 +00:00
Peter Stephenson
cf89569c45 20482: but with completion inside interactive completion 2004-10-14 07:19:04 +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