1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-07-15 06:01:26 +02:00
Commit graph

455 commits

Author SHA1 Message Date
Peter Stephenson
4735ee67af 30127: forbid fc from executing history lines in reverse 2012-02-05 19:28:16 +00:00
Peter Stephenson
a6de37ec2b 29744: don't mess up non '-A' cases in read -E fix 2011-08-29 17:21:39 +00:00
Peter Stephenson
af071465b1 29731: fix read -AE, test that and read -Ae 2011-08-28 17:06:27 +00:00
Peter Stephenson
12e246495c 29413: "print -S" for saving to history with lexical word split 2011-06-03 19:54:43 +00:00
Peter Stephenson
d89361739a 29165: use term.h globally if needed at all. 2011-05-09 09:49:08 +00:00
Peter Stephenson
35ddd9c4ba users/15953: handle EINTR when using read -k or -q with -u or -p 2011-04-11 16:34:21 +00:00
Frank Terbeck
2eac105770 28853: Fix typo: preceed -> precede 2011-03-04 13:25:25 +00:00
Bart Schaefer
6e50d3d7db 28823: make it an error to tie the same scalar to two different arrays 2011-03-01 05:18:15 +00:00
Peter Stephenson
dbbcbf67cb 28791: exit on errors with special builtins with POSIXBUILTINS 2011-02-22 20:09:20 +00:00
Peter Stephenson
a89f0559c2 28590: make read return status non-zero on error 2011-01-07 10:05:35 +00:00
Peter Stephenson
bdb38058e4 28345: make ${(D)...} return a fully usable command line argument 2010-10-15 18:56:16 +00:00
Bart Schaefer
9530331b4f 28268: I/O to a terminated (or never created) coprocess emits a
"no coprocess" diagnostic, instead of either nothing or "bad file number".
2010-09-19 19:20:33 +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
147cedfb6f 27965, 27966: Improve ${(q)...}: newline appears as $'\n;, 2010-05-27 18:57:34 +00:00
Peter Stephenson
09960dc5b9 27951: Add $ZSH_EVAL_CONTEXT and $zsh_eval_contxt 2010-05-12 10:06:59 +00:00
Peter Stephenson
bbc88550db 27723: eval shouldn't modify non-zero return statuses 2010-02-19 12:26:08 +00:00
Peter Stephenson
7da34421c1 27675: Michael Hwang: fix crash in hash builtin 2010-02-07 18:49:28 +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
0d8a580951 users/14752: add #! line to zed
allow script run with -i to exit on return
2010-01-29 21:44:54 +00:00
Peter Stephenson
f30af94885 27357: fix compiler warnings in attr module
27358: fix error if $0 altered in sourced file
2009-11-06 22:38:47 +00:00
Peter Stephenson
6d4d1261a5 27240: fix fix for lexing in test builtin 2009-09-02 15:26:44 +00:00
Peter Stephenson
72f0b14a04 27188: improve read -q by using read -k code 2009-07-24 18:35:49 +00:00
Peter Stephenson
2c81423516 27181: extend POSIX_CD to handle target directory printing behaviour 2009-07-21 09:34:08 +00:00
Peter Stephenson
606cfb5a5e 27167: add POSIX_CD option to test "." after CDPATH 2009-07-19 19:07:14 +00:00
Peter Stephenson
351f6541e9 Eric Blake: 27151: cd handling with initial // for Cygwin 2009-07-15 08:43:25 +00:00
Peter Stephenson
5c5a388ed7 27087: change return codes from failed "." 2009-07-02 13:46:36 +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
10787467bc 27079: save lexical context in test builtin 2009-07-01 09:07:07 +00:00
Peter Stephenson
0f4c321380 26975: compilation issues in bin_print() 2009-05-20 09:53:13 +00:00
Peter Stephenson
d1abd3e7cf 26957: Fix some memory problems with read builtin
unposted: fix a WARN_CREATE_GLOBAL warning
2009-05-12 11:11:14 +00:00
Peter Stephenson
a6ff95d0c1 26954: read should pass through invalid multibyte characters 2009-05-07 16:04:21 +00:00
Peter Stephenson
aa3942d2d1 Michael Hwang: 26776: improved column alignment with print -c -P 2009-03-25 09:51:43 +00:00
Wayne Davison
bf25c3a43f 26735: Check some function return values for failures. Gets rid of
some compiler warnings, and improves error handling/notification.
2009-03-15 01:04:50 +00:00
Peter Stephenson
535afe3b2a 26614 + 26615: history -t <fmt> plus ztrftime "-" format modifier 2009-03-02 10:11:45 +00:00
Peter Stephenson
10182c766b c.f. 26586: rename yylex to zshlex and yytext to zshlextext 2009-02-25 10:23:58 +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
Andrey Borzenkov
665b7d1f93 26425: allow "emulate sh -c command" to eval command under sh emulation 2009-01-25 18:19:28 +00:00
Oliver Kiddle
61e9152b11 26028: close temporary file when aborting fc 2008-11-12 12:57:25 +00:00
Peter Stephenson
60b410fd7c "typeset -g <var>" should be silent even without TYPESET_SILENT 2008-11-05 13:01:56 +00:00
Oliver Kiddle
a9a516d219 25983: Fix bug in hash builtin with empty hash entry name 2008-10-31 23:43:36 +00:00
Peter Stephenson
135211b00b 25971: fix options handling for builtins that handle their own 2008-10-30 19:52:44 +00:00
Peter Stephenson
36d228b129 25937: builtins with no options should still ignore -- 2008-10-28 20:55:22 +00:00
Clint Adams
802cdd4f5e 25910: avoid dangling file handle in bin_print. 2008-10-18 14:13:15 +00:00
Clint Adams
b26cb5f98a 25896: remove small bit of dead code in execbuiltin. 2008-10-14 21:47:52 +00:00
Peter Stephenson
98b604282e 25817: make "fc -l" more careful to list all recent history 2008-10-06 18:15:36 +00:00
Peter Stephenson
59dd1491c6 users/13295, tweaked: dont reset line numbers when parsing strings, sometimes 2008-09-29 08:46:21 +00:00
Peter Stephenson
4a34c96289 25755/25756: Jörg Sommer: improved handling of module arguments
25759: fix dynamic named directory crash, static named directory consistency
2008-09-27 19:57:25 +00:00
Peter Stephenson
d3c4108f30 Rocky Bernstein: 25727: allow fc non-interactively
Add sanity test for empty history
2008-09-23 08:41:54 +00:00
Peter Stephenson
6951a1e0b2 25671: non existing variable in typeset -p should cause status 1 2008-09-15 08:57:25 +00:00
Peter Stephenson
b8a36eea87 25662: declare -p should never create arguments 2008-09-13 19:59:13 +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
50e4b43362 25568: Frank Terbeck & pws: invalid continue and break arguments
also tests for control commands
2008-08-31 13:35:28 +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
c4f33330f6 25409: fix eval's use of lastval 2008-08-06 19:51:04 +00:00
Peter Stephenson
0c9830d23c 25345, 25347: neaten interface from main shell to zle 2008-07-31 08:44:16 +00:00
Peter Stephenson
bb21e2531f following discussion, change fc error message 2008-07-27 18:28:44 +00:00
Peter Stephenson
897e8085ba 25338: disallow usage of current history line in fc 2008-07-25 08:55:26 +00:00
Peter Stephenson
0409391c7d 25272: add zshaddhistory hook 2008-07-17 11:27:55 +00:00
Peter Stephenson
1c29f641c6 Mikael: 25143: spelling corrections
25144: report supported bases
25139: fix number
2008-06-10 08:50:35 +00:00
Peter Stephenson
02e0a4755f 25040: zpty should display context information more like eval 2008-05-15 15:50:57 +00:00
Peter Stephenson
b86c191af5 25025: check radix for integer constants is between 2 and 36 inclusive 2008-05-14 10:48:26 +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
fbfbc7636f 24980: zmodload -mF 2008-05-08 12:07:04 +00:00
Peter Stephenson
2cec7aae44 24861 (with tweaks): logic to use alternative wcwidth() if needed;
slightly improve test for overwriting with combining characters.
2008-04-22 15:08:04 +00:00
Peter Stephenson
bc32da6a67 24786: handle read -t properly in zle via getbyte() 2008-04-03 15:20:18 +00:00
Peter Stephenson
50d9cdeae4 24768: add -q option to cd, chdir, pushd, popd
use in _canonical_paths
add 4.3.6 release note with this and other stuff
2008-03-28 09:59:06 +00:00
Peter Stephenson
e5a6543e6d overeagnerness to spot integers in cd after - and + 2008-03-02 21:21:52 +00:00
Bart Schaefer
5994edfc88 zsh-users/12600: reorder handling of -s/-d/-t options so that terminal
input modes are set before attempting a read-poll.  Also display any
prompt before read-polling.  Unposted: remove trailing whitespace from
all lines that had it.
2008-02-18 03:18:03 +00:00
Wayne Davison
172a81db90 Silence a compiler warning. 2008-01-21 19:15:39 +00:00
Peter Stephenson
b24d545294 users/12412: check for extra arguments in test and [ 2008-01-10 18:53:49 +00:00
Peter Stephenson
20607774dc 24275: fixes for multibyte characters on Solaris 2007-12-17 17:11:29 +00:00
Peter Stephenson
64c85ae68a users/12325: implement OSI rules for test & [, add more doc warnings 2007-12-12 18:43:28 +00:00
Peter Stephenson
04f42fdbdf 24210: set -o should abort on failure 2007-12-11 14:05:52 +00:00
Peter Stephenson
b9f3fc7c81 24068: attempt to make `printf "%g\n" -0 output "-0" 2007-11-06 11:04:34 +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
Peter Stephenson
86ff81f82d 23444: handle multibyte characters in print -c/-C 2007-05-20 17:57:23 +00:00
Felix Rosencrantz
9ed500a1cd 23164: Silence popd when PUSHD_SILENT is set. 2007-02-11 00:40:18 +00:00
Peter Stephenson
0108088f52 23152: make ztrcmp() respect MULTIBYTE
make sorting of printed hash tables more consistent
2007-02-06 21:47:54 +00:00
Peter Stephenson
553e011320 23118: improve sorting to make it work with locales 2007-01-21 22:47:36 +00:00
Peter Stephenson
de815e3d22 23098: printf multibyte character widths 2007-01-09 21:45:45 +00:00
Peter Stephenson
46a163bd34 23088: printf formats and arguments need different octal escape sequences 2007-01-04 17:24:01 +00:00
Peter Stephenson
25134bc341 unposted: improve CUTBUFFER and killring documentation
23044: print -c and print -C didn't handle unmetafied input
2006-12-10 23:27:01 +00:00
Peter Stephenson
b09a7cc5bf 22997: fix ${...?...} exit and traps 2006-11-11 13:16:10 +00:00
Peter Stephenson
254b3f1a6b 22992: make $? available in exit traps/hooks
22993: slightly more effective _make variable fix
2006-11-10 09:59:26 +00:00
Peter Stephenson
7929d97254 22984: add zshexit hook 2006-11-09 11:04:10 +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
a519a6d15c 22968: fix metafication for print -z and print -s 2006-11-05 21:49:15 +00:00
Peter Stephenson
289b14113b 22819: improved internal use of string quotation,
plus completion bug fix with RCQUOTES
2006-10-05 21:53:26 +00:00
Peter Stephenson
2bfad02a94 22742: parameter padding uses string lengths unless (m) flag set
22743: restrict sh "- [args]" -> "-xv [-- args]" hack to sh mode
2006-09-20 09:22:34 +00:00
Peter Stephenson
6c887892f9 22685: make printf "%d" \"X handle multibyte characters 2006-09-10 19:11:53 +00:00
Peter Stephenson
80acfd135c 22684: improve getkeystring() interface and make printf do octal escapes 2006-09-10 18:10:48 +00:00
Peter Stephenson
50e9ab122b 22556: Multibyte separators and delimiters 2006-07-24 22:00:19 +00:00
Peter Stephenson
4a67f24798 22544: Improve use of ztype tests for multibyte characters. Add
POSIX_IDENTIFIERS option to control allowability of multibyte
alphanumeric characters in parameter and module names.
2006-07-10 13:08:22 +00:00
Peter Stephenson
dd5602f59b 22474: use variable argument lists to improve error message handling 2006-05-30 22:35:03 +00:00
Peter Stephenson
b7474e065b 22416, tweaked: math functions via shell functions
unposted: add styles to pick-web-browser
2006-04-19 16:09:06 +00:00
Peter Stephenson
80ec63bfa7 22337: debugging code omitted from 22331 2006-03-08 15:50:50 +00:00
Wayne Davison
4cb83571c4 Changed some structures to avoid gcc's type-punned warnings. 2006-03-07 21:30:36 +00:00
Bart Schaefer
20aae107b8 22321: optimize 22318. 2006-03-06 15:38:59 +00:00
Peter Stephenson
4065dd5258 22318: uniquifying special arrays was broken 2006-03-03 22:27:02 +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
e366ca8dbf users/9638: tweaks for FCEDIT etc.
21986: rewrite completion suffixes for wide characters
2005-11-07 09:37:34 +00:00
Peter Stephenson
2ddaeb605f 21890: fix segmentation error in left prompt truncation and a couple of minor
inconsistencies
2005-10-19 21:59:34 +00:00
Peter Stephenson
dc060607e9 21730: fix metafication of nicechar and pwd 2005-09-17 18:23:49 +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
Wayne Davison
b97ff864af Make printf %s handle an embedded null (21579). 2005-08-10 07:45:17 +00:00
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
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
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
Oliver Kiddle
14bfaab3ef 21352: Harald van Dijk: handle null after % in printf format specifier 2005-06-17 08:37:46 +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
b72a946185 Fix handling of metafied characters in trailing whitespace on read 2005-04-25 10:18:25 +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
05b06b1c08 fix autoloaded trap bug; rejig use of trapfuncs
(now traplists); improve trap tests
2005-02-06 20:36: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
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
Peter Stephenson
5141e68daa 20572: Allow alternative signal names 2004-11-22 10:33:03 +00:00
Wayne Davison
3ccc3e4bdc Use the new gettempfile() function. 2004-10-21 00:33:50 +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
Peter Stephenson
46141be5f9 20412, tweaked: Make test builtin more POSIX compatible
20435: Make pattern.c not alter strings.
2004-10-05 10:39:41 +00:00
Wayne Davison
2e4db343c6 - Call saveandpophiststack() with its new writeflags arg.
- Use the new HFILE_NO_REWRITE flag when saving the history
  file after a signal was received.
2004-10-01 19:48:44 +00:00
Wayne Davison
cbaaa338fa Use convbase() instead of a "%d" format to convert a zlong. 2004-10-01 18:51:44 +00:00
Peter Stephenson
6b1dc0f701 20331: Use internal zlong variables for consistency
20332: Add WIDGETSTYLE zle parameter
2004-09-09 10:12:42 +00:00
Bart Schaefer
72fdf24448 20320: rewrite of 20318, for sanity. 2004-09-08 08:24:00 +00:00
Bart Schaefer
91a08a2517 20318: Fix xtrace output bug introduced by 20308. 2004-09-04 16:59:35 +00:00
Peter Stephenson
97fd0d9b89 20308: add EVAL_LINENO option 2004-09-03 09:47:44 +00:00
Peter Stephenson
4c8796b11d 20141: Crash restoring exported special parameters 2004-07-07 15:00:44 +00:00
Wayne Davison
fb0937a69e Marked unused parameters with the new UNUSED() macro. 2004-06-02 22:14:25 +00:00
Wayne Davison
c39a15df42 - Added the -a option to "fc" and "history".
- Call saveandpophiststack() using the newest calling syntax.
2004-05-21 20:05:08 +00:00
Wayne Davison
76ec200cc4 - Added the -p (push) and -P (pop) options to the "fc" builtin.
- Allow -p/-P to be given to "history".
- On exit, save & pop any pushed history stacks before we call the
  normal savehistfile() function.
2004-05-20 22:22:43 +00:00
Peter Stephenson
63442b3eaa 19810: ksh autoloading
19812: autoloaded traps which are still buggy.
2004-04-23 11:17:13 +00:00
Peter Stephenson
c1e47cb71f 19801: implement autoloading of trap functions 2004-04-20 12:57:27 +00:00
Oliver Kiddle
2c1f42366d 19767, 19785: store flags for -z and -k options to autoload allowing the
completion system to be used with ksh_autoload set
2004-04-20 12:38:15 +00:00
Oliver Kiddle
ca0deae382 19767, 19785: store flags for -z and -k options to autoload allowing the
completion system to be used with ksh_autoload set
2004-04-20 12:11:13 +00:00
Peter Stephenson
6fa6a1f865 Peter Castro: Cygwin improvements for dynamic libraries, text/binary, paths 2004-04-06 09:25:17 +00:00
Peter Stephenson
8860363e5c 19140: release process group on exit if acquired 2004-03-16 10:58:45 +00:00
Oliver Kiddle
3ee4759f28 19549: correct buffer size for printf spec 2004-03-07 13:29:49 +00:00
Peter Stephenson
1a89fbabb4 19361: Memory leaks 2004-01-12 12:09:10 +00:00
Wayne Davison
5a8969ec2e Changed bin_eval() to default lastval to 0, just in case we have an
empty eval string.
2004-01-05 17:07:21 +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
Wayne Davison
084d6f5a25 Fix the old-style typeset -T (without the new separator arg). 2003-09-25 07:37:13 +00:00
Peter Stephenson
eeb9ec4714 19129: extra argument to typeset -T gives character for joining array 2003-09-24 14:55:32 +00:00
Oliver Kiddle
6e09c17757 19059: add -v, -V and -p flags required by POSIX to the command builtin 2003-09-11 07:00:05 +00:00
Peter Stephenson
3ffb3ad2f2 19014: add alias -s suf=handler 2003-09-03 10:15:32 +00:00
Peter Stephenson
2d2ce4ecc2 18836: read with metafied delimiter didn't work. 2003-07-09 11:04:01 +00:00
Peter Stephenson
10be59abca 18578: 18559 caused typeset failures 2003-05-24 22:46:35 +00:00
Oliver Kiddle
09c5818b39 18530: print option states with set -o' or set +o' 2003-05-15 09:39:55 +00:00
Peter Stephenson
06b04ca1b2 18435: unsetting readonly returned status 0 2003-04-04 16:46:25 +00:00
Wayne Davison
ca8ad2e262 Prevent "print -m" from crashing (complains about missing pattern). 2003-03-28 20:21:00 +00:00
Peter Stephenson
2941469f61 18392: read with -p and -t and no coprocess crashed. 2003-03-26 18:55:22 +00:00
Oliver Kiddle
5164c6a3c9 18242: add -d option to read for specifying delimiter to terminate input 2003-02-17 10:07:53 +00:00
Oliver Kiddle
6d2921542e 18223: satisfy POSIX requirement for a -v flag to unset 2003-02-13 13:46:00 +00:00
Peter Stephenson
4f3b9e43d2 18204: KSH_ARRAYS 2003-02-07 17:05:09 +00:00
Peter Stephenson
590a26709a 18195: Timeouts for read builtin. 2003-02-05 11:56:55 +00:00
Peter Stephenson
9a8dfbb7b5 18013: Handle test of (( float == 0.0)) properly 2002-12-18 16:57:02 +00:00
Peter Stephenson
84b6d587d1 17996: better formatting for print -C 2002-12-11 16:03:09 +00:00
Peter Stephenson
bbbc5536da 17940: Add -C and -a options to print builtin 2002-11-20 12:37:43 +00:00
Wayne Davison
fd3bac933f - Save off the raw start-time of the $SECONDS special variable if we're
creating a local value (avoids rounding problems with elapsed time).
- Also changed a line where the newspecial enum was compared to 0 instead
  of NS_NONE.
2002-10-31 18:32:06 +00:00
Peter Stephenson
ff23ebe925 17872: Fix `typeset SECONDS' when creating local parameter 2002-10-29 10:56:38 +00:00
Peter Stephenson
7bfc0f1b5c 17868: Allow $SECONDS to become floating point. 2002-10-29 10:31:12 +00:00
Oliver Kiddle
7a0ab2444d 17794: fix bugs with tied parameters 2002-10-10 11:06:42 +00:00
Bart Schaefer
a1d727e5dc 17692: Prevent typeset of a positional parameter before it can do damage,
and improve the error message about it.
2002-09-19 17:57:56 +00:00
Oliver Kiddle
49bfbc1248 17678: ignore initial `--' argument to printf to satisfy POSIX 2002-09-16 18:24:47 +00:00
Peter Stephenson
56565320c1 17608: comment on use and abuse of BINF_SKIPINVALID 2002-09-03 19:33:00 +00:00
Peter Stephenson
25e363df2b 17602, 17603: Rationalise option handling, in particular for cd, pushd, popd. 2002-09-03 09:33:35 +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
7123f4413b 17544: implement read -s to suppress tty echo 2002-08-22 12:57:43 +00:00
Oliver Kiddle
af0697b705 17503: fix various typos and spelling mistakes in source code comments 2002-08-05 12:35:59 +00:00
Peter Stephenson
cc70b96162 17497: getopts skipped over zero-length arguments. 2002-08-01 15:50:07 +00:00
Peter Stephenson
8e90d2018c Dan Nelson: 17492: Quote output from xtrace 2002-08-01 15:06:25 +00:00
Peter Stephenson
39bb8c9e8b 17485?: Incorrect test for TYPESET_SILENT 2002-07-29 16:02:53 +00:00
Peter Stephenson
19817c34d1 17334: TYPESET_SILENT shell option and typeset -p option 2002-06-20 16:39:47 +00:00
Peter Stephenson
0e08b8c2e4 17299: Use reference counts in Eprogs so as to be able to free them as soon
as finished with.
2002-06-07 14:44:21 +00:00
Peter Stephenson
682d83503b 17292: shut up compiler if no OPEN_MEMSTREAM 2002-06-05 15:03:15 +00:00
Wayne Davison
18b090df5a Got rid of unused-variable compiler warning. 2002-03-24 07:56:42 +00:00
Oliver Kiddle
f40278ec0b 16862: allow print's -s and -z options to be used with -f 2002-03-19 14:34:01 +00:00
Peter Stephenson
15630b234a 16759: Src/builtin.c: from Eric Norum <eric.norum@usask.ca>:
cd prints output whenever the target directory is not obvious
to the user.  This confuses scripts, so restrict it to
interactive mode.
2002-03-04 15:51:58 +00:00
Wayne Davison
8fc5ffa60a Improved the output of the "history" command with a 1-line history buffer,
and also improved the error handling of explicitly-specified first/last
values.
2002-02-22 21:59:43 +00:00
Oliver Kiddle
6febc8fe67 16619, 16676: add -c, -l and -p options to the dirs builtin 2002-02-20 12:51:51 +00:00
Wayne Davison
168aeada1a Silenced a compiler warning. 2002-02-12 19:34:53 +00:00
Bart Schaefer
c6d589aadd 16556: No error on `print >&-'. 2002-02-04 19:38:40 +00:00
Clint Adams
79e13d1209 16503: warn on fclose or fflush errors in bin_print. 2002-01-27 22:44:40 +00:00
Bart Schaefer
9113c2e2d6 16435: Fix core dump in `hash'. 2002-01-26 21:03:36 +00:00
Clint Adams
0db3827ce2 unposted: back out idiotic patch 2001-12-18 01:24:23 +00:00
Clint Adams
9cf6e76e7d unposted: initialize save to NULL to avoid compiler warning. 2001-12-18 01:21:26 +00:00
Oliver Kiddle
0e1845cbc6 16228: allow widths and precisions to work with printf's %b format specifier 2001-11-09 16:47:43 +00:00
Oliver Kiddle
c1441714b5 zero %n value when reusing printf format (16122) 2001-10-23 11:22:33 +00:00
Oliver Kiddle
62829b856d allow arguments to be specified in printf format specifications (16080) 2001-10-18 14:22:21 +00:00
Oliver Kiddle
4aaa5b3257 fix return code and tests of printf and comment above bslashquote func (16064) 2001-10-16 11:16:04 +00:00
Oliver Kiddle
577ebe0b8a use arithmetic evaluation for numeric arguments to printf (16042) 2001-10-15 11:34:27 +00:00
Oliver Kiddle
648d1c2756 add print -f option, %n format specifier and tests for print/printf (15973) 2001-10-08 10:47:46 +00:00
Peter Stephenson
cc0d931682 15931: EXIT traps from exit in subshell; 15965: glob -> zglob 2001-10-08 08:13:11 +00:00
Oliver Kiddle
a5890553e8 add printf builtin (15851, 15948) 2001-10-05 15:02:18 +00:00
Peter Stephenson
11b0734108 * Src/builtin.c, Src/exec.c: Unwind function calls before exiting
shell from exit command to allow EXIT traps to run.
2001-09-24 10:12:51 +00:00
Wayne Davison
f38b2c5aa8 Further modify the "fc -l" code to tolerate out-of range values. 2001-09-18 17:50:26 +00:00
Wayne Davison
6a7d256a58 + Changed fclist() to not not transform "fc -l 0 0" into "fc -l 1 1".
+ Changed fcgetcomm() to handle new error return from addhistnum().
2001-09-13 18:19:08 +00:00
Bart Schaefer
d978bb894e Fix and regression tests for crash on typeset of local array elements. 2001-08-13 17:43:04 +00:00
Peter Stephenson
7060b34457 15334: use string "(eval)" as script name in debugging messages in eval's 2001-07-09 18:31:24 +00:00
Peter Stephenson
003ec8c7e8 15327: always use local LINENOs in parse_string(). 2001-07-09 16:05:13 +00:00
Bart Schaefer
d8aee67492 Fix infinite loop on `r OLD=NEW' when OLD is the empty string. 2001-07-08 00:33:45 +00:00
Peter Stephenson
d247b7f146 $* and $@ are special 2001-06-14 09:49:01 +00:00
Peter Stephenson
231f077a75 14348: fix globalexport with typeset -g 2001-05-15 10:02:34 +00:00
Bart Schaefer
219674c48b More parameter/subscript cleanup. 2001-04-21 18:49:12 +00:00
Bart Schaefer
220ad9aa23 Parameter repairs, mostly for subscripting. 2001-04-20 06:13:35 +00:00
Peter Stephenson
3278ad8490 disallow changing of parameter type
for autoloadable parameter (bug 219459 on Sourceforge).
2001-03-29 10:52:15 +00:00
Clint Adams
e846a825fe 13478: whence shouldn't segfault on an empty path component 2001-02-14 23:36:23 +00:00
Andrey Borzenkov
e28d948e92 13389: normalize path in cd_do_chdir on Cygwin to get rid of DOS names 2001-01-26 12:47:37 +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
Clint Adams
13b93a5faa 13215: echotc, echoti, terminfo 2000-12-03 20:53:07 +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
Bart Schaefer
5ca1864f94 Change some zerr to zwarn for consistency. 2000-10-02 18:40:35 +00:00
Clint Adams
9f012ce7c9 12847: dynamically allocate buf and z in bin_whence() 2000-09-19 16:47:38 +00:00
Clint Adams
04bf2c822f 12823: use zsh heap in lieu of perm. heap in bin_dot 2000-09-18 03:31:31 +00:00
Clint Adams
2abf9db381 12821: bin_dot is now independent of PATH_MAX 2000-09-17 16:24:05 +00:00
Bart Schaefer
bd7969bfa5 "typeset +m ..." and "typeset +g -m ..." 2000-09-17 05:38:36 +00:00
Bart Schaefer
a12ff424b6 12804: Fix "typeset -m". 2000-09-14 15:54:54 +00:00
Peter Stephenson
c66544a86b 12561: Completion/Builtins/_zmodload, Doc/Zsh/builtins.yo,
Src/builtin.c, Src/module.c, Src/zsh.h: aliases for modules
done internally via `zmodload -[AR]'
2000-08-08 09:13:36 +00:00
Peter Stephenson
4a5882eeb3 12411, 12419: Andrej: environment handling with fewer assumptions 2000-07-28 09:10:35 +00:00
Wayne Davison
495249342e Removed call to remhist(). 2000-07-19 20:43:51 +00:00
Wayne Davison
b50d754909 Changed several references to curhist into curline.histnum so that
they would work right even if we didn't store the current command
in the history.
2000-07-18 07:56:45 +00:00
Peter Stephenson
756a2aba9c unposted: move poll_read 2000-06-26 21:27:07 +00:00
Peter Stephenson
acda8dc256 12073: read -t to test for available input before reading 2000-06-26 15:00:27 +00:00
Peter Stephenson
abd757eac4 12044: read -A bug 2000-06-23 09:45:38 +00:00
Peter Stephenson
12fd5d0065 12040: typeset -r bug 2000-06-22 20:57:14 +00:00
Peter Stephenson
055d961f84 11867: restrict typeset -H application 2000-06-12 09:27:09 +00:00
Peter Stephenson
6b87e6fda3 11838: typeset -H 2000-06-09 15:37:05 +00:00
Sven Wischnowsky
f94e5d78b0 some more memory leak fixes (11745) 2000-06-05 07:57:27 +00:00
Bart Schaefer
17aadf0338 11607: For "read -q", open shout if necessary
even when SHTTY is
already a valid descriptor.
2000-05-27 08:31:32 +00:00
Sven Wischnowsky
cb50583b18 fix for read -q without a shout (11524) 2000-05-23 08:37:06 +00:00
Bart Schaefer
529158f82f 11461: Make "read" interruptible even when used in the tail of a pipeline. 2000-05-19 15:10:52 +00:00
Oliver Kiddle
6ff206e057 Add -L option to the hash builtin 2000-05-15 00:31:20 +00:00
Peter Stephenson
26cc1ad1df doc changes; typo in _jobs; integer builtin understands `-i base' 2000-05-14 22:08:41 +00:00
Peter Stephenson
ade3663216 11314: fix for typeset -U not updating value in environment 2000-05-10 19:15:58 +00:00
Sven Wischnowsky
c844ad8712 Wayne: fix for print -s when called from widget; added lines are not immediately available, though (11171) 2000-05-05 07:42:36 +00:00
Sven Wischnowsky
d205f2530b allow calling `print -s' in widgets, avoid duplicated history number 2000-05-03 07:10:35 +00:00
Bart Schaefer
966eca4ad8 11036, 11063, 11077: Always write the "read -q" prompt to shout; eliminate
some redundant close() calls; relocate a misplaced redirection.
2000-05-02 15:52:43 +00:00
Peter Stephenson
304d5f9b39 11057: getopts bug 2000-05-02 09:56:09 +00:00
Peter Stephenson
563936ba27 11026: fix for unfunction of trap with localtraps bug 2000-04-30 14:48:49 +00:00
Bart Schaefer
8496342841 11015: `unfunction TRAPxxx' now works with localtraps in effect. I'm not
very happy with having to play with `noerrs' but I don't see any other way
to silence the warning from bin_unhash().
2000-04-29 06:33:48 +00:00
Peter Stephenson
5c53fb9500 10771: new GLOBAL_EXPORT option; successful compilation on OpenBSD 2000-04-16 19:02:13 +00:00
Peter Stephenson
cf92384eac 10738: pws: local parameters can be exported 2000-04-13 14:22:47 +00:00
Sven Wischnowsky
f5b6feedca make read -[kq] always print the prompt, if any; after all they make sure they have a terminal anyway (10727) 2000-04-13 08:43:39 +00:00