| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
| |
Reviewed by:
Submitted by:
Obtained from:
|
|
|
|
| |
inside backquotes. Reversed my previous fix.
|
|
|
|
| |
Should solve our problems with edit-pr.
|
|
|
|
|
| |
Convert "" to "." for "cd" and "cd ''". chdir("") is required to fail
on POSIX systems.
|
|
|
|
|
|
|
|
| |
MKINIT line that doesn't have a comment on it (we have at least two).
This mkinit program was written by someone who obviously doesn't believe
in defensive programming. :-( There's a LOT of work that needs to be done
on this thing. :-( :-( :-(
|
|
|
|
|
|
|
|
|
|
| |
find it in /bin. This is something of a kludge, I know, but consider
my limited alternatives: I can't make this an execvp() without making
people scream that I introduced a failure point or slowed down pwd,
and I can't make it an optional macro since crunch doesn't let you pass
arbitrary command-line args to the build of one of its crunch-ees.
This is the simplest, if not the nicest looking, solution I could come up
with.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
This should fix it (passed my test cases). Originally discovered with
perl's Configure (well, in FreeBSD, I don't know how the NetBSD folks
discovered it).
Reviewed by: sef
Submitted by: jtc@cygnus.com
Obtained from: NetBSD
|
|
|
|
|
|
| |
automagically. -lfoo has to be right to work, but ${LIBFO0} is too
easy to forget or misspell; nothing checks it and it should be
different for shared libraries.
|
|
|
|
|
| |
changing it. mkinit's attempted smartness about timestamps is mismatched
with the makefile. init.o is compiled _twice_ the first time it is made...
|
| |
|
| |
|
|
|
|
| |
static if ${NOSHARED}==YES. This makes it easier to bootstrap a system.
|
|
|