1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-10 12:40:58 +02:00
Commit graph

99 commits

Author SHA1 Message Date
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