dsl
b17e1b5c12
Fix 'set "*" b; case "* b" in "$@") ...' and 'set "*"; case 1 in "${#1}") ...'
...
Which got broken by the previous fix.
2003-09-22 12:17:24 +00:00
jmmv
4c79e7620f
Drop equal signs from rule definitions; they cause problems with "bison -y".
2003-09-17 17:33:36 +00:00
christos
4dcb41ae2c
PR/22640: Paul Jarc: sh mishandles positional parameters in case. Fixed
...
from FreeBSD PR 56147.
2003-09-17 16:01:19 +00:00
jmmv
0ec085e737
Add 'trace' to CLEANFILES, generated when debug is enabled.
2003-09-14 12:11:10 +00:00
jmmv
af90286087
Fix crash when DEBUG=2, by opening the log file ASAP. Reviewed by simonb@.
2003-09-14 12:09:29 +00:00
jmmv
aba1ca99ae
Include strings.h, needed for index's prototype.
2003-08-26 18:14:24 +00:00
jmmv
6d82007582
Use '\0' instead of NULL in two checks (we are not checking for a pointer
...
value). While here, add a missing whitespace.
2003-08-26 18:13:25 +00:00
jmmv
5199a59afa
s/FD_SETFD/F_SETFD/
2003-08-26 18:12:33 +00:00
jmmv
534b18e585
Move an assignment that was using a variable out of scope to fix a build
...
problem on !NetBSD.
2003-08-25 20:08:12 +00:00
itojun
59a105b48a
remove \r (agc, are you using MS-DOS?)
2003-08-22 14:21:12 +00:00
agc
3538d2653b
Move 4 more files from UCB 4 clause to 3 clause licence.
...
Thanks to Julio Merino for pointing them out.
2003-08-22 11:22:23 +00:00
christos
e9a8269bb0
remove clause 3
2003-08-21 17:57:53 +00:00
agc
b5b2954259
Move UCB-licensed code from 4-clause to 3-clause licence.
...
Patches provided by Joel Baker in PR 22249, verified by myself.
2003-08-07 09:05:01 +00:00
itojun
a69cd45b93
use bounded string op
2003-07-13 08:31:13 +00:00
wiz
5127f8f2c1
Quote some punctuation.
2003-06-27 09:11:12 +00:00
dsl
a9fc176e82
Don't close any script files if vfork is set.
...
If a fork() is done later in order to feed a 'here' document into a pipe
then it is possible that one end of the pipe might get closed.
2003-05-15 13:26:45 +00:00
dsl
49e6852272
Fix problems with parallel makes.
2003-05-15 10:13:36 +00:00
dsl
6285ef062c
Use echo instead of cat to add prologue to builtins.[ch]
...
Under some circumstances the headers got overwritten.
2003-05-15 10:11:01 +00:00
christos
dd61e68e1f
Use ${HOST_SH}
2003-05-08 13:03:19 +00:00
wiz
f0b76593e4
Drop trailing space.
2003-05-06 08:33:08 +00:00
dsl
534ba36ad4
Recognise octal and hexadecimal constants in expressions.
...
- as required by SUSv3
2003-05-06 08:10:42 +00:00
gmcgarry
5e5ffccb2b
ANSIify.
2003-05-04 06:36:50 +00:00
gmcgarry
f8d2e9e189
Add new builtin 'inputrc' which allows keybindings to be redefined
...
for the current shell. From Arne H Juul in PR#10097.
2003-05-04 01:05:24 +00:00
gmcgarry
62bb6faae3
Expand documentation of emacs and vi modes. From
...
Jeremy C. Reed in PR#14578.
2003-05-02 09:00:14 +00:00
itojun
e6a384fc32
%d is 12 chars, not 10 chars. hinted by deraadt
2003-04-15 07:40:56 +00:00
zuntum
1a2ec1a713
add missing parenthesis
2003-04-12 16:39:19 +00:00
kristerw
7fee304b15
Change "if" to "if and only if" per discussion in PR 20794.
2003-03-22 11:37:49 +00:00
lukem
c61fa8df18
If building as a CRUNCHEDPROG, use "lex -L" and "yacc -l" to suppress #line
...
generation. This may solve [bin/20637].
2003-03-10 17:58:21 +00:00
wiz
990562bfef
.Nm does not need a dummy argument ("") before punctuation or
...
for correct formatting of the SYNOPSIS any longer.
2003-02-25 10:34:36 +00:00
wiz
4cc7cdbc5c
New sentence, new line; bump date for last change.
2003-02-12 18:58:50 +00:00
gmcgarry
8a0ced42ec
Introduce LANG environment variable and Xref to nls(7).
...
Comment out the statement: "We expect POSIX conformance
by the time 4.4BSD is released."
2003-02-12 02:55:14 +00:00
dsl
51d94f2156
Fix bin/20185 - builtin called from function of same name mustn't be hashed.
...
Make 'hash' only report utilities that are not builtins (posix), the
non-posix 'hash -v' will report everything.
(agreed by christos)
2003-02-04 08:51:30 +00:00
dsl
0871280204
Parse end of line comments correctly
...
(approved by christos)
2003-02-02 21:10:45 +00:00
christos
66b9125762
- use FD_CLOEXEC properly
...
- move ttyfd to a high fd
suggested by Tim Robbins at FreeBSD.
2003-01-27 12:54:08 +00:00
wiz
6ce643e53c
Fix indentation of continuation of first line in SYNOPSIS.
2003-01-23 18:32:07 +00:00
agc
53ed48f326
Make this build on platforms where size_t != int, i.e. sparc, arm, ppc, ...
2003-01-23 14:58:07 +00:00
rafal
0923f4be26
Make this build again.
2003-01-23 03:33:16 +00:00
wiz
e254f6a849
More markup, more commas, less typos.
2003-01-22 22:05:45 +00:00
dsl
e314f958bd
Support command -p, -v and -V as posix
...
Stop temporary PATH assigments messing up hash table
Fix sh -c -e "echo $0 $*" -a x (as posix)
(agreed by christos)
2003-01-22 20:36:03 +00:00
kleink
b3df6303a9
Rename `sigset' locals to avoid symbol shadowing warning.
2003-01-16 09:38:37 +00:00
christos
51457e8842
Make sure that UPEOF is compared to the right type on the left hand
...
side. Sometimes it was compared to int, which was -1 on EOF, and on
unsigned char machines UPEOF was (unsigned char)-1. This worked
by chance because isalpha((unsigned char)-1) returns false usually,
but it does not when the locale is invalid!
2003-01-12 20:26:53 +00:00
christos
a17201f05e
allow this to be compiled with unsigned-chars.
2003-01-09 13:57:26 +00:00
wiz
617b132aac
Spell output with two ts.
2003-01-04 23:43:02 +00:00
uebayasi
80a4544dcd
trap '' SIGINT -> trap '' INT.
2002-12-28 05:08:27 +00:00
kleink
9273e5b038
Another it's -> its.
2002-12-19 18:04:41 +00:00
uebayasi
60ad876a43
`` [n1]>&n2 Duplicate standard output (or n1) _TO_ n2.''
2002-12-12 11:50:40 +00:00
christos
aa0e549885
PR/19453: Christopher Richards: Call setlocale() in /bin/sh
2002-12-11 19:12:18 +00:00
agc
1aafd1a470
Include <stdio.h> to get the prototype for sprintf(3) - macppc needs this.
2002-11-25 21:55:58 +00:00
agc
ea1d615943
Make this compile on some of the more esoteric architectures (e.g. those
...
which are not i386)
2002-11-25 12:13:03 +00:00
christos
c02b3bbdf4
Fixes from David Laight:
...
- ansification
- format of output of jobs command (etc)
- job identiers %+, %- etc
- $? and $(...)
- correct quoting of output of set, export -p and readonly -p
- differentiation between nornal and 'posix special' builtins
- correct behaviour (posix) for errors on builtins and special builtins
- builtin printf and kill
- set -o debug (if compiled with DEBUG)
- cd src obj (as ksh - too useful to do without)
- unset -e name, remove non-readonly variable from export list.
(so I could unset -e PS1 before running the test shell...)
2002-11-24 22:35:38 +00:00