aboutsummaryrefslogtreecommitdiff
path: root/bin/sh/input.h
Commit message (Collapse)AuthorAgeFilesLines
* Renumber copyright clause 4Warner Losh2017-02-281-1/+1
| | | | | | | | | | | | Renumber cluase 4 to 3, per what everybody else did when BSD granted them permission to remove clause 3. My insistance on keeping the same numbering for legal reasons is too pedantic, so give up on that point. Submitted by: Jan Schaumann <jschauma@stevens.edu> Pull Request: https://github.com/freebsd/freebsd/pull/96 Notes: svn path=/head/; revision=314436
* sh: Remove arbitrary length limit on << EOF markers.Jilles Tjoelker2014-09-141-1/+0
| | | | | | | This also simplifies the code. Notes: svn path=/head/; revision=271593
* sh: Add some const keywords.Jilles Tjoelker2014-09-141-1/+1
| | | | Notes: svn path=/head/; revision=271590
* sh: Remove mkinit.Jilles Tjoelker2013-07-251-0/+1
| | | | | | | | | | | | | | | | | Replace the RESET blocks with regular functions and a reset() function that calls them all. This code generation tool is unusual and does not appear to provide much benefit. I do not think isolating the knowledge about which modules need to be reset is worth an almost 500-line build tool and wider scope for variables used by the reset functions. Also, relying on reset functions is often wrong: the cleanup should be done in exception handlers so that no stale state remains after 'command eval' and the like. Notes: svn path=/head/; revision=253650
* sh: Fix various compiler warnings.Jilles Tjoelker2013-04-011-2/+2
| | | | | | | | | | It now passes WARNS=7 with clang on i386. GCC 4.2.1 does not understand setjmp() properly so will always trigger -Wuninitialized. I will not add the volatile keywords to suppress this. Notes: svn path=/head/; revision=248980
* sh: Remove an unused variable.Jilles Tjoelker2012-11-141-1/+0
| | | | Notes: svn path=/head/; revision=243027
* sh: Forward-declare struct alias instead of giving up type safety via void *Jilles Tjoelker2012-11-111-1/+2
| | | | Notes: svn path=/head/; revision=242895
* sh: Make various functions static.Jilles Tjoelker2012-01-011-1/+0
| | | | Notes: svn path=/head/; revision=229220
* sh: Constify various strings.Jilles Tjoelker2009-12-241-1/+1
| | | | | | | | Most of this is adding const keywords, but setvar() in var.c had to be changed somewhat more. Notes: svn path=/head/; revision=200956
* sh: Ensure the same command input file is on top after executing a builtin.Jilles Tjoelker2009-11-221-0/+4
| | | | | | | | | | | | | | | | This avoids weirdness when 'fc -e vi' or the like is done and there is a syntax error in the file. Formerly an interactive shell tried to execute stuff after the syntax error and exited. This should also avoid similar issues with 'command eval' and 'command .' when 'command' is implemented properly as in NetBSD sh. Special builtins did not have this problem since errors in them cause the shell to exit or to reset various state such as the current command input file. Notes: svn path=/head/; revision=199647
* Avoid leaving unnecessary waiting shells in many forms of sh -c COMMAND.Jilles Tjoelker2009-06-131-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | This change only affects strings passed to -c, when the -s option is not used. The approach is to check if there may be additional data in the string after parsing each command. If there is none, use the EV_EXIT flag so that a fork may be omitted in specific cases. If there are empty lines after the command, the check will not see the end and forks will not be omitted. The same thing seems to happen in bash. Example: sh -c 'ps lT' No longer shows a shell process waiting for ps to finish. PR: bin/113860 Reviewed by: stefanf Approved by: ed (mentor) Notes: svn path=/head/; revision=194128
* Remove clause 3 from the UCB licenses.Mark Murray2004-04-061-4/+0
| | | | | | | OK'ed by: imp, core Notes: svn path=/head/; revision=127958
* o __P has been reovedWarner Losh2002-02-021-12/+12
| | | | | | | | | | | | | | | | | | | | | o Old-style K&R declarations have been converted to new C89 style o register has been removed o prototype for main() has been removed (gcc3 makes it an error) o int main(int argc, char *argv[]) is the preferred main definition. o Attempt to not break style(9) conformance for declarations more than they already are. o Change int foo() { ... to int foo(void) { ... Notes: svn path=/head/; revision=90111
* $Id$ -> $FreeBSD$Peter Wemm1999-08-271-1/+1
| | | | Notes: svn path=/head/; revision=50471
* Revert $FreeBSD$ to $Id$Peter Wemm1997-02-221-1/+1
| | | | Notes: svn path=/head/; revision=22988
* Make the long-awaited change from $Id$ to $FreeBSD$Jordan K. Hubbard1997-01-141-1/+1
| | | | | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise. Notes: svn path=/head/; revision=21673
* Merge in NetBSD mods and -Wall cleaning.Steve Price1996-12-141-2/+2
| | | | | | | Obtained from: NetBSD, me Notes: svn path=/head/; revision=20425
* Merge of 4.4-Lite2 sh source, plus some gcc -Wall cleaning. This is aPeter Wemm1996-09-011-28/+14
| | | | | | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=17987
* Added $Id$David Greenman1994-09-241-0/+1
| | | | Notes: svn path=/head/; revision=3044
* BSD 4.4 Lite bin SourcesRodney W. Grimes1994-05-261-0/+78
Notes: svn path=/head/; revision=1556