| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
| |
example of such a clone.
PR: 14601
Submitted by: Matthias Buelow <mkb@altair.mayn.de>
|
|
|
|
|
|
| |
don't have their stdin closed indisciminantly.
Reviewed by: markm
|
|
|
|
|
|
|
|
| |
than two processes (got that? :-), the stdin fd of the middle
processes that has just been set up was accidetially closed. Don't do
this.
PR: bin/14527
|
|
|
|
| |
PR: bin/14509
|
| |
|
|
|
|
| |
Reviewed by: mpp
|
|
|
|
|
|
|
|
| |
commit and those which cause ugly nroff output have been fixed, since
the purpose of the style guideline which they contravene is to reduce
the sizes of deltas.
Reported by: bde
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Consistently misspell built-in as builtin.
* Add a builtin(1) manpage and create builtin(1) MLINKS for all shell
builtin commands for which no standalone utility exists. These MLINKS
replace those that were created for csh(1).
* Add appropriate xrefs for builtin(1) to the csh(1) and sh(1) manpages,
as well as to the manpages of standalone utilities which are supported
as shell builtin commands in at least one of the shells. In such
manpages, explain that similar functionality may be provided as a
shell builtin command.
* Improve sh(1)'s description of the cd builtin command. Csh(1) already
describes it adequately. Replace the cd(1) manpage with a builtin(1)
MLINKS link.
* Clean up some mdoc problems: use Xr instead of literal "foo(n)"; use
Ic instead of Xr for shell builtin commands.
* Undo English contractions.
Reviewed by: mpp, rgrimes
|
|
|
|
|
|
| |
but that doesn't mean that they will never work.
Requested by: mpp, rgrimes
|
|
|
|
|
|
|
|
|
|
| |
Fix grammar and spelling nits.
Use .Dq and .Qq where appropriate.
Divorce trailing punctuation from quoted elements.
Use .Dq instead of .Xr for builtins.
Remove trailing whitespace and blank lines.
PR: 13340
|
| |
|
|
|
|
|
|
|
| |
the default. Add -r option for the read builtin to reverse this.
PR: 13274
Reviewed by: cpiazza, hoek, sheldonh
|
|
|
|
|
|
|
|
| |
which it should not do.
PR: 12578
Reported by: Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
Submitted by: Niall Smart <niall@pobox.com>
|
|
|
|
| |
Submitted by: Philippe Charnier <charnier@xp11.frmug.org>
|
|
|
|
|
|
|
|
|
|
| |
statement if blocks[*] when the else could be ambiguous, not defaulting
to int type and removal of some unused variables.
[*] This is explicitly allowed by style(9) when the single statement
spans more than one line.
Reviewed by: obrien, chuckr
|
|
|
|
| |
PR: bin/9173
|
| |
|
|
|
|
| |
PR: 7059
|
|
|
|
|
| |
might be relocated. Handle this case.
PR: 7059
|
| |
|
|
|
|
|
|
|
|
| |
this is hairy).
Reformat this file to comply to style(9). It had mixed styles before.
PR: bin/7059
|
|
|
|
|
|
|
|
|
|
|
| |
representation of the expression is quoted. Take care of this when
doing pattern matching in conjunction with trimming.
#!/bin/sh
c=d:e; echo "${c%:e}"
PR: NetBSD PR#7231
Noticed by: Havard Eidnes <Havard.Eidnes@runit.sintef.no>
|
|
|
|
|
|
|
|
|
| |
is killed by a signal.
(In non-interactive shells - that means a shellscript - the shell just
exits, this was already working)
PR: bin/9173
|
|
|
|
|
|
|
|
|
| |
http://www.cons.org/cracauer/download/sh-interrupt/testsuite/test_export.sh
The PR also had test cases the new version passes.
Fix typo in comment.
PR: bin/1030
|
|
|
|
| |
Submitted by: BDE
|
|
|
|
|
|
|
|
|
|
| |
make /etc/rc interruptible in cases when programs hang with blocked
signals) isn't standard enough.
It is now switched off by default and a new switch -T enables it.
You should update /etc/rc to the version I'm about to commit in a few
minutes to keep it interruptible.
|
|
|
|
| |
PR: 7325
|
| |
|
|
|
|
| |
Obtained from: OpenBSD
|
|
|
|
|
|
| |
in sh, by using separate macros for the 1, 2 and 3-arg calls to warnx.
(The 3-arg warnx macro in sh/bltin/bltin.h used to require bogus dummy
args.)
|
|
|
|
|
| |
PR: docs/8140
Submitted by: Sue Blake <sue@vedanix.welearn.com.au>
|
|
|
|
|
|
|
| |
Don't output double-quotes inside variable expansion/arithmetic
expansion region in here-documents. When leaving the arithmetic
expansion syntax mode, adjust the dblquote flag according to
previous syntax, in order to avoid splitting of quoted variables.
|
|
|
|
| |
Improve comments.
|
|
|
|
| |
Include "expand.h" vom memalloc.c to pull function declartion into scope
|
|
|
|
|
|
|
|
|
|
|
|
| |
foreground child is running. Formerly, traps were exceuted after the
next child exit.
The enables the user to put a breaking wrapper around a blocking
application:
(trap 'echo trap ; exit 1' 2; ./pestyblocker; echo -n)
The "echo -n" after the child call is needed to prevent sh from
optimizing the trap-executing shell away. I'm working on this.
|
|
|
|
|
|
| |
multiple times when performing nested variable expansion, and
preserve some quoting information in order to avoid removing
apparently empty expansion result.
|
|
|
|
|
| |
PR: 2541
Obtained from: NetBSD
|
|
|
|
| |
Submitted by: Bruce Evans
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
i.e. this makes emacs usable from system(3). Programs called from
shellscripts are now required to exit with proper signal status. That
means, they have to kill themself. Exiting with faked numerical exit
code is not sufficient.
Exit with proper signal status if script exits on signal.
Make the wait builtin interruptable, both with and without traps set.
Use volatile sig_atomic_t where (and only where) appropriate.
(Almost) fix printing of newlines on SIGINT.
Make traps setable from trap handlers. This is needed for shellscripts
that catch SIGINT for cleanup work but intend to exit on it, hance
have to kill themself from a trap handler. I.e. mkdep.
While I'm at it, make it -Wall clean. -Wall is not enabled in
Makefile, since vararg warnx() macro calls in usr.bin/printf/printf.c
are not -Wall-able.
PR: 1206
Obtained from: Basic SIGINT fix from Bruce Evans
|
|
|
|
| |
PR: docs/5399
|
|
|
|
|
|
| |
Removed explicit dependencies of foo.o on foo.c. These were mainly
placeholders for comments about missing dependencies of tools objects
on headers. This problem needs to be handled more generally.
|
| |
|
| |
|
|
|
|
|
| |
a separate object tree doesn't exist. Crufty makefiles will have to
put y.tab.h in SRCS so that we know not to create foo.h from foo.y.
|
| |
|
|
|
|
|
|
| |
This is needed for the '-e' option. See the PR for more details.
PR: 6047
Reviewed by: PR submitter, silence on review request.
|
|
|
|
| |
on generated headers). This is now handled generally in bsd.prog.mk.
|
|
|
|
| |
sourced by the "." command.
|