summaryrefslogtreecommitdiffstats
path: root/bin/sh
Commit message (Collapse)AuthorAgeFilesLines
* Document the builtin echo commandmarko2000-07-171-4/+60
| | | | Reviewed by: Matthew Hunt <mph@astro.caltech.edu>
* Fixd with alias missing.sada2000-07-151-0/+1
| | | | | PR: bin/19475 Approved by: Martin Cracauer <cracauer@cons.org> (with conditions)
* Add \a and \e to "echo -e" escape handling.mph2000-06-261-0/+2
|
* Fix parsing of string for eval command.cracauer2000-05-151-0/+1
| | | | | PR: 18447 Submitted by: Koji Mori <mori@tri.asanuma.co.jp>
* Fix environment passung to eval'ed commands.cracauer2000-05-152-1/+2
| | | | | | PR: bin/6577 Submitted by: Anatoly Vorobey <mellon@pobox.com> Approved by: silence amoung other sh experts
* Rename the trace() function (that is build only in the -DDEBUG=2cracauer2000-04-203-4/+5
| | | | | | | | | | | case), so that it doesn't clash with the ncurses function of the same name when linking statically with -ltermcap. The linker only complains when -static is used, and it is not clear whether this is a bug. PR: bin/18104 Submitted by: Anatoly Vorobey <mellon@pobox.com>
* Include <errno.h> when compiling with -DDEBUG=2cracauer2000-04-201-0/+3
| | | | | PR: bin/18104 Submitted by: mellon@pobox.com
* Fix warnings, some of them serious because sh violated namecracauer2000-04-208-17/+8
| | | | | | | | spaces reserved by the header files it includes. mkinit.c still produces C code with redundant declarations, although they are more harmless since they automatically derived from the right places.
* Use #include <errno.h> rather than extern int errno;.imp2000-04-141-2/+1
|
* Fix ${#varname} (getting length of string) when in double-quotes.cracauer2000-02-151-1/+1
| | | | | | | Approved-by: jkh PR: bin/12137 Submitted by: "Danny J. Zerkel" <dzerkel@columbus.rr.com>
* Fix command hash handling oncracauer1999-12-203-3/+29
| | | | | | PATH=... command Noted by and fix works for Marcel Moolenaar <marcel@scc.nl>
* Second part of 8-bit fixes.cracauer1999-12-161-1/+9
|
* Document ulimit -b for RLIMIT_SBSIZE.cracauer1999-12-151-1/+3
|
* First round of 8-bit fixes.cracauer1999-12-153-9/+10
|
* make '|' character visible.cracauer1999-12-051-1/+1
| | | | | PR: docs/15265 Submitted by: takamune@avrl.mei.co.jp
* Fix "subscript has type `char'" warnings by casting to int, ascracauer1999-12-042-5/+6
| | | | discussed on -arch.
* Include strerror(errno) in error messages after failed system calls.cracauer1999-11-2910-15/+21
| | | | Fix a warning.
* Follow-up on mdoc fixes in rev 1.35; this includes things that I missedsheldonh1999-11-181-29/+58
| | | | | | in that revision as well as things I broke in that revision. A note- worthy instance of the latter case was the inversion of -E and -V in the subsection on Commandline Editing.
* The pipleline problem introduced in version 1.22 wasn't fully fixed incracauer1999-11-171-1/+1
| | | | | | | 1.23. This revision should work for long pipes both in here-documents/backquote and in normal cases. Fix works for jmz, bde.
* Don't call bash(1) a Korn shell clone. Instead, use pdksh(1) as ansheldonh1999-11-101-2/+2
| | | | | | | example of such a clone. PR: 14601 Submitted by: Matthias Buelow <mkb@altair.mayn.de>
* Correct logic from previous commit - middle processes in long pipessteve1999-11-071-1/+1
| | | | | | don't have their stdin closed indisciminantly. Reviewed by: markm
* When a backquote command inside a here-document had a pipe with morecracauer1999-11-051-1/+2
| | | | | | | | 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
* Fix ';' command when used with -e flag.cracauer1999-10-261-1/+8
| | | | PR: bin/14509
* Implement ulimit -b for RLIMIT_SBSIZE.green1999-10-091-1/+4
|
* Mdoc cleanup, with a few grammar cleanups on the side.sheldonh1999-10-071-498/+922
| | | | Reviewed by: mpp
* Correct some hard sentence breaks. Only those surrounding the previoussheldonh1999-09-141-61/+65
| | | | | | | | 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
* Improve shell documentation:sheldonh1999-09-082-32/+44
| | | | | | | | | | | | | | | | | | | | | | | | | * 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
* Revert to using .Xr for builtins. The cross-references don't work now,sheldonh1999-08-311-5/+5
| | | | | | but that doesn't mean that they will never work. Requested by: mpp, rgrimes
* Clean-up:sheldonh1999-08-301-69/+160
| | | | | | | | | | 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
* $Id$ -> $FreeBSD$peter1999-08-2769-71/+71
|
* Make the behaviour of `read -e', ie. treating backslashes as special,tg1999-08-262-17/+21
| | | | | | | the default. Add -r option for the read builtin to reverse this. PR: 13274 Reviewed by: cpiazza, hoek, sheldonh
* Fix handling of the cd command inside evaluations. It was changing PWD,sheldonh1999-07-191-1/+2
| | | | | | | | which it should not do. PR: 12578 Reported by: Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at> Submitted by: Niall Smart <niall@pobox.com>
* Various spelling/formatting changes.kris1999-05-088-17/+17
| | | | Submitted by: Philippe Charnier <charnier@xp11.frmug.org>
* First set of fixes to keep egcs happy. These include {} around singleimp1999-04-252-5/+4
| | | | | | | | | | 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
* Next approach to make loops in interactive interruptable.cracauer1999-04-214-13/+17
| | | | PR: bin/9173
* Typo fix.max1999-04-191-3/+3
|
* Remove my temporary detection for PR 7059, Tor Egge fixed this bug.cracauer1999-04-131-5/+1
| | | | PR: 7059
* During variable expansion, the internal representation of the expressiontegge1999-04-131-5/+5
| | | | | might be relocated. Handle this case. PR: 7059
* Fix typo in source-explaining comment.cracauer1999-04-121-2/+2
|
* Add a guarded abort() for the problem in PR bin/7059 (no fix so far,cracauer1999-04-121-17/+33
| | | | | | | | this is hairy). Reformat this file to comply to style(9). It had mixed styles before. PR: bin/7059
* When a variable expansion is enclosed in double quotes, the internaltegge1999-04-092-16/+56
| | | | | | | | | | | 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>
* In interactive shells, break loops to the topmost level when a childcracauer1999-04-031-1/+6
| | | | | | | | | is killed by a signal. (In non-interactive shells - that means a shellscript - the shell just exits, this was already working) PR: bin/9173
* Implement -a flag. A test shell script can be found atcracauer1999-04-032-4/+5
| | | | | | | | | 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
* -T was missing in the synopsis line.cracauer1999-04-021-2/+2
| | | | Submitted by: BDE
* The immediate execution of traps I introduced in September 1998 (tocracauer1999-04-014-7/+23
| | | | | | | | | | 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.
* sh doesn't support <> redirections.brian1999-03-311-4/+2
| | | | PR: 7325
* Add references to test(1) and expr(1).jkoshy1998-12-181-1/+4
|
* Free memory from setmode.imp1998-12-161-2/+3
| | | | Obtained from: OpenBSD
* Fixed warnx format errors in printf and csh, and snprintf format errorsbde1998-12-071-2/+12
| | | | | | 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.)
* Fix typo. "If the an entry" --> "If an entry"billf1998-12-021-2/+2
| | | | | PR: docs/8140 Submitted by: Sue Blake <sue@vedanix.welearn.com.au>
OpenPOWER on IntegriCloud