dsl
3acd9704cb
A rather better fix for treating $((x)) as equivalent to $(($x)) provided
...
that $x has a numeric value - which is what posix/sus needs.
2005-03-21 22:37:09 +00:00
dsl
a65ddf9664
Back out previous, amongst other things it breaks $((0x10))
2005-03-21 20:10:29 +00:00
dsl
b747d738fa
Treat $((x)) as equivalent to $(($x)) - posix seems to require this now.
2005-03-20 21:39:11 +00:00
dsl
aecb1ce456
Add 'continue' as body of empty loop.
2005-03-20 21:38:17 +00:00
dsl
328c436518
Check quoting before merging ifs regions.
...
sh -c 'set -- a; x="b c"; set -- "$@"$x'
now correctly gives $1=ab, $2=c
2005-03-19 16:38:27 +00:00
dsl
2078d2c0ca
Don't merge ifs regions with different quoting requirements
2005-03-19 15:02:58 +00:00
dsl
4803d37f2b
Fix the way the 'read' builtin processes IFS. In particular:
...
- IFS whitespace is now processes correctly,
- Trailing non-whitespace IFS characters are added to the last variable
iff a subsequent variable would have been assigned a non-null string.
Now passes the 'read' tests in http://www.research.att.com/~gsf/public/ifs.sh
2005-03-19 14:22:50 +00:00
wiz
1a27add367
Use more macros (Sq/Dq).
2005-03-11 13:16:10 +00:00
ginsbach
0d1bfba8c7
Add mechanism for escaping IPv6 address strings, since they already
...
contain colons. Idea from Solaris rcp(1).
2005-03-11 02:55:23 +00:00
wiz
165812e4cb
Add -4 and -6 to usage.
2005-03-09 17:09:39 +00:00
ginsbach
25e3a7ec6d
- Support -4 and -6. Approved by christos.
2005-03-09 03:11:21 +00:00
dsl
8693718ba1
Fix printing of invalid commandname after certain types of errors on builtins.
...
Fixes bug bin/29410 in head.
All of /bin/sh needs pulling up into 2.0
2005-03-02 20:57:31 +00:00
christos
128abffcbe
The quagga-0.98.2 tar archive is busted. It was created with an old tar
...
program, and then someone appended to it a ustar record. Detect this and
warn, but don't treat it as an error.
2005-02-20 07:35:47 +00:00
xtraeme
d33a7206d5
Kill __P(), use ANSI function declarations.
2005-02-17 16:29:26 +00:00
xtraeme
06bca8b1ce
Kill __P().
2005-02-17 16:07:53 +00:00
xtraeme
0b39b8da10
Kill __P(), use ANSI function declarations.
2005-02-17 15:17:44 +00:00
dsl
f712e70aee
expbackq() was incorrectly backing up a temporary buffer when removing \n
...
from the end of output of commands inside $(...) substitutions.
If the program output is n*128+1 bytes long (ending in a \n) then the code
checks buf[-1] for another \n - looking an uninitialised stack.
On a big-endian system an integer of value 10 will satisfy this (unlikely
on little endian) and can happen depending on the last code path to use
a lot of stack!
This caused the problem with newvers.sh on sparc64 after ', 2005' was
added to the date list.
Fixed PR/28852
2005-02-14 20:46:26 +00:00
christos
4dd264a6c5
allow -t ttyp0 -t p0 -t /dev/ttyp0 -t /dev/pts/0
2005-02-11 18:26:18 +00:00
simonb
3cebd9325e
White space nit- don't put a space before/after increment/decrement
...
operators.
2005-02-11 06:21:21 +00:00
jmc
4dca8bd51e
Fix from PR#29290. Properly terminate the cpio_longopts struct so an unknown
...
option doesn't run off the end and core dump
2005-02-10 17:48:33 +00:00
simonb
dec70f4a29
KNF, use NULL instead of (type *)0.
2005-02-10 06:56:55 +00:00
perry
3fa24d7834
remove obsolete register declarations
2005-02-06 04:43:43 +00:00
matt
f57592cd95
Don't write hardlinked file contents in sv4cpio mode.
2005-02-04 00:38:15 +00:00
christos
cff5b51c44
Allow short command names as long as they are not ambiguous.
2005-02-03 15:15:48 +00:00
christos
796d7ce2f3
Use the length of the command for comparison not the length
...
of the command line argument. Allows "compression" to be used
for "compress" etc.
2005-02-03 00:03:02 +00:00
jmc
94eaa31771
Apply user supplied patterns first before applying actions for -A. This way pax
...
behavior WRT to patterns lines up with the example in the documentation
and how other implementations do it as well since -A is a non-standard
option/behavior. Fixes items noted in PR#23776
2005-01-23 06:19:03 +00:00
dsl
3b8851c887
Check for *ptr == 0, not ptr == NULL twice when validating -s xxxxx in tar mode.
...
Fixes PR bin/29040
Also actually report an error to the tty if NET2_REGEX is defined.
2005-01-21 20:23:44 +00:00
christos
2a32d39ed6
PR/28940: David Laight: /bin/sh doesn't quote the output of trap.
2005-01-11 19:38:57 +00:00
jschauma
5398861167
The '-l' option *always* prints a total, not only if output is to a
...
terminal.
2005-01-09 16:33:32 +00:00
augustss
6258e74613
Use the same width (9) for both the Used and Avail columns.
2004-12-31 09:54:28 +00:00
skrll
c3dc5c50d9
Add the missing suspended state 'U'.
...
Bump date.
2004-12-29 08:48:09 +00:00
provos
d830f0d651
increase the maximum length of allowable system call names
2004-12-01 03:30:07 +00:00
atatat
fde0dde8b2
Make ps understand "-tpts/4" by assuming that ptyfs is mounted on
...
/dev/pts and that the '/' immediately preceding the digits does not
need a 'p' in front of it (ick, kludge_oldps_options()).
2004-11-29 04:44:10 +00:00
mycroft
75a40767d0
Print some future timestamps with HH:MM rather than YYYY, so that we get
...
something reasonable if we're using a file server whose time is slightly
ahead.
2004-11-17 17:00:00 +00:00
christos
3e870b856b
print TTY instead of TT, one question mark instead of two and always the
...
full tty name.
2004-11-16 04:58:14 +00:00
christos
027df12dd8
Pass WARNS=3
2004-10-30 19:29:27 +00:00
dsl
238960af7e
Add (unsigned char) cast to ctype function
2004-10-29 19:51:36 +00:00
dsl
7f5b5f6c04
Add (unsigned char) casts to tolower/toupper and iscntrl calls.
...
Fixes PR 27593
2004-10-28 20:15:36 +00:00
tron
addf1a0f97
Fix broken cpio(1) option handling:
...
- "cpio -i -t" should list the contents of a file, not extract it.
- Don't extract a file when only option "-d" is given.
Patch supplied by Paul Ripke in PR bin/26513.
2004-10-26 16:11:49 +00:00
jmc
79308267d4
For HOSTTOOL builds, just exclude the chroot support as it's not needed and
...
avoids having to platform check for fchroot(). Fixes PR#27336
2004-10-22 21:00:18 +00:00
wiz
7faf3dc435
English improvement (remove "be").
2004-10-20 23:48:01 +00:00
dsl
74db501288
Update date - before wiz complains
2004-10-17 18:53:59 +00:00
dsl
7404af49b7
Improve error reporting for invalid tar archives.
2004-10-17 18:51:29 +00:00
dsl
8317fe1276
Add an option --chroot to tar. Causes it to chroot(".") before doing
...
an extract. With -h this will cause existing absolute symlinks to be treated
as relative to the current directory.
Helps sysinst handle existing symlinks in the target system.
Remove 'L' from the usage (got spilt into 'h' and 'H' many moons ago)
Add 'S' to usage, and put into correct place in options list.
2004-10-17 18:49:55 +00:00
christos
211a72de86
Add WARNS=3
2004-10-16 18:07:16 +00:00
dan
e541469606
teach rcmd about getport move in rsh directory
2004-10-16 09:58:38 +00:00
christos
4fbd9df224
PR/27212: Greg A. Woods: Accept "-C <dirname>" inside filelists in addition
...
to "-C\n<dirname>".
But we are not making it the default output option as the patch suggests.
2004-10-10 22:05:26 +00:00
christos
1faaf9a7c2
PR/27213: Greg A. Woods: pax doesn't honour SIGPIPE when listing
...
But always exit, not just on SIGPIPE.
2004-10-10 22:03:08 +00:00
christos
d8cc5bab94
PR/27209: Greg A. Woods: typo in comment in pax/tty_subs.c
2004-10-10 21:54:24 +00:00
christos
37fed2119d
PR/27208: Greg A. Woods: pax must call options() before using syswarn()
...
or tty_warn()
2004-10-10 21:53:23 +00:00