| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
| |
This patch causes too many side effects, one of which bites hard is
when interrupting a 'make fetch' in the ports tree (PR#1990).
This whole area is a real can of worms....
This most definately should go into 2.2
Reviewed by: steve, bde
|
|
|
|
| |
2) replace collate_range_cmp call with its code
|
|
|
|
|
|
| |
found in bash, zsh, and friends.
Reviewed by: joerg
|
|
|
|
|
|
|
|
| |
so that simple regresssion tests based on `cmp' work. mkdep still
doesn't work right for these tools. They should probably be in
separate directories.
Sorted dependencies.
|
|
|
|
|
|
|
| |
when a child is forked and the -c commandline switch
has been specified.
Reviewed by: joerg
|
| |
|
|
|
|
|
|
|
|
|
| |
flag text in the man page. Now this will work
correctly:
/bin/sh -ec 'false && true; echo hi'
Obtained from: VaX#n8 <vax@linkdead.paranoia.com>
|
|
|
|
|
| |
tweaked to work as a builtin better (ie: calls the real printf formatting
code, not sh's cut-down out1fmt() function)
|
|
|
|
|
|
| |
*blush* %-\
Pointed out by: bruce
|
| |
|
|
|
|
| |
Steve's.. :-]
|
|
|
|
| |
patch-by-hand botch, but it sig-11's during make world.
|
|
|
|
| |
Submitted by: Steve Price <sprice@hiwaay.net>
|
| |
|
|
|
|
| |
when I was experimenting looking for an alternate format. *blush*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
face of aliases. Note, bash doesn't do aliases while running scripts, but
"real" ksh does..
Also:
Reduce redundant .Nm macros in (unused) bltin/echo.1
nuke error2, it's hardly used.
More -Wall cleanups
dont do certain history operations if NO_HISTORY defined
handle quad_t's from resource limits
Submitted by: Steve Price <sprice@hiwaay.net> (minor tweaks by me)
|
|
|
|
|
|
|
|
|
|
| |
- don't put \n on error() calls, error adds it already.
- don't prepend "ulimit" on error() calls in miscbltin.c.
- getopt typo on ulimit -p -> -u conversion
- get/setrlimit() calls were not being error checked
ulimit formatting cleanup from me, use same wording as bash on Bruce's
suggestion. Add ulimit arg to output on Joerg's suggestion.
|
|
|
|
|
| |
off in FreeBSD for some time. I realised this a few seconds after the
commit started..
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
merge of parallel duplicate work by Steve Price and myself. :-]
There are some changes to the build that are my fault... mkinit.c was
trying (poorly) to duplicate some of the work that make(1) is designed to
do. The Makefile hackery is my fault too, the depend list was incomplete
because of some explicit OBJS+= entries, so mkdep wasn't picking up their
source file #includes.
This closes a pile of /bin/sh PR's, but not all of them..
Submitted by: Steve Price <steve@bonsai.hiwaay.net>, peter
|
|
|
|
| |
Obtained from: A Quarter Century of UNIX, Peter H. Salus, page 41
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
really want them) from /usr/src. This is the final version of the
patches, incorporating the feedback I've received from -current.
|
| |
|
| |
|
|\
| |
| |
| | |
which included commits to RCS files with non-trunk default branches.
|
| |
| |
| |
| |
| |
| |
| |
| | |
Requested by: joerg
(Note, this is mostly going to be conflicts, which is expected. Our entire
sh source has a mainline, so this should not change anything except for
a few new files appearing. I dont think they are a problem)
|
| |
| |
| |
| |
| |
| |
| |
| | |
didn't correctly start background jobs anymore. Strange that nobody
was complaining...
Add a dummy target for `builtins' in the Makefile, to prevent it
from attempting to build this file by compiling builtins.c. :-/
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
traditional behaviour, and it violates Posix.2.
Fixes PR # bin/880: /bin/sh incorrectly parse...
Fixes also an earlier problem report about the shell not evaluating
loops correctly. (Not files via GNATS.)
Submitted by: nnd@itfs.nsk.su (Nickolay N. Dudorov)
|
| |
| |
| |
| | |
sh's builtin/bltin.h.
|
| |
| |
| |
| |
| |
| | |
noticed on a NetBSD bugs mailing list but this is entirely my own work.
Inspired by: Scott Reynolds <scottr@plexus.com>, for NetBSD
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This means that a script containing:
echo 1
set -v
echo 2
will now produce output, like it does on SYSV machines and other 'proper'
/bin/sh implementations..
This is done by a slight restructure of the input processor allowing it to
read chunks from the file at a time, but process the data by line from the
chunk.
Obtained from: Christos Zoulas for NetBSD. <christos@deshaw.com>
|
| |
| |
| |
| |
| |
| |
| | |
o fix brokeness for 1>&5 redirection, where `5' was an invalid file
descriptor, but no error message has been generated
o fix brokeness for redirect to/from myself case
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
command and badly needed in sh(1) for everybody who wants to modify
the system-wide limits from inside /etc/rc.
The options are similar to other system's implemantations of this
command, with the FreeBSD additions for -m (memoryuse) and -p (max
processes) that are not available on other systems.
|
| |
| |
| |
| | |
Since the broken version went into 2.1, this fix should, too.
|
| |
| |
| |
| | |
avoid "duplicate definition" warnings.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
sh -c [-aCefinuvx] command_string [ command_name [argument ...] ] 1
4.56.3 Options
-c Read commands from the command_string operand. Set the
value of special parameter 0 (see 3.5.2) from the value of
the command_name operand and the positional parameters
($1, $2, etc.) in sequence from the remaining argument
operands.
Pointed out by: Kaleb Keithly (kaleb@x.org)
|
| |
| |
| |
| |
| |
| | |
while { sleep 1 & wait; } do echo 1; done
corrupted the job table every 4th iteration.
|
| |
| |
| |
| |
| |
| |
| | |
e.g.:
ls |> foo.out
sh now behaves the same as it does under SunOS 4.x for this case.
|
| |
| |
| |
| |
| |
| | |
When comparing my recent parser change against the ash in 1.1.5.1, i
found that a couple of other problems in the same area has been fixed
there, but not in 2.2. Semicolons and EOF do also delimit words...
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
The && and || tokens do also terminate a command, not only the
newline.
While i was at it, disabled trace code by default, it served no good
purpose since it required the use of a debugger anyway to be turned
on. Instead, placed a hint in the Makefile on how to turn it on.
This makes the shell ~ 10 % faster and ~ 4 KB smaller. :)
Pointed out by: jan@physik.TU-Berlin.DE (Jan Riedinger)
|
| | |
|
| |
| |
| |
| |
| |
| | |
closing backquote in a `foo` substitution.
Discovered by: Martin Welk <mw@theatre.pandora.sax.de>
|
| |
| |
| |
| |
| |
| |
| | |
``-ffoo'' and ``-f foo'' have been treated differently.
This has been in violation of Posix.2 (that deprecates -ffoo, but
doesn't disallow it).
|
| |
| |
| |
| | |
Reviewed by: phk
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
There is a bug in sh: the built in command "fc -l" generates
a core dump (*NULL in not_fcnumber).
According to the sh manual page (fc -l [-nr] [first [last]]), fc -l
is a correct sequence (in that case, values are defaulted to -16 and -1)
but fails when first is not given.
|