summaryrefslogtreecommitdiffstats
path: root/bin/sh/shell.h
Commit message (Collapse)AuthorAgeFilesLines
* sh: Remove #define MKINIT.jilles2013-07-251-1/+0
| | | | MKINIT only served for the removed mkinit. Many variables can be static now.
* sh: Detect dividing the smallest integer by -1.jilles2011-02-121-0/+2
| | | | | This overflows and on some architectures such as amd64 it generates SIGFPE. Generate an error on all architectures.
* In the spirit of r90111, depend on c89 and remove the "STATIC" macroobrien2010-10-131-9/+0
| | | | and its usage.
* Consistently use "STATIC" for all functions in order to be able to setobrien2010-10-131-0/+3
| | | | | | breakpoints with in a debugger. And use naked "static" for variables. Noticed by: bde
* If DEBUG is 3 or greater, disable STATICization of functions.obrien2010-10-121-1/+6
| | | | Also correct the documented location of the trace file.
* - Fix bugs where the value of arithmetic expansion$((...)) was trucatedstefanf2008-04-271-4/+11
| | | | | | | | | | | to type int. - Change the type used for arithmetic expansion to intmax_t (ie. 64 bit on all currently supported FreeBSD architectures). SUSv3 requires at least type long but allows for larger types. Other shells (eg. bash, zsh, NetBSD's sh) do that too. PR: 122659 Submitted by: Jaakko Heinonen (minor modifications by me)
* Remove clause 3 from the UCB licenses.markm2004-04-061-4/+0
| | | | OK'ed by: imp, core
* Style cleanup, mostlyschweikh2003-09-041-7/+6
| | | | Requested by: bde
* Implement missing shell arithmetic operators in $(()) expansionschweikh2003-08-301-0/+8
| | | | | | | | | | and variable recognition. PR: standards/52972 Submitted by: Wartan Hachaturow <wart@tepkom.ru> Reviewed by: tjr (improved on original patch) Tested by: buildworld on CURRENT. MFC after: 6 weeks
* Remove broken and incomplete support for old releases of System V,tjr2002-07-191-6/+0
| | | | don't support system that implement getcwd(3) with a pipe to /bin/pwd.
* Remove now-obsolete __STDC__ ifdefs, remove redundant NULL definition andimp2002-02-181-10/+0
| | | | include stdlib.h for NULL.
* Rename the trace() function (that is build only in the -DDEBUG=2cracauer2000-04-201-1/+1
| | | | | | | | | | | 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>
* $Id$ -> $FreeBSD$peter1999-08-271-1/+1
|
* Revert $FreeBSD$ to $Id$peter1997-02-221-1/+1
|
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-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.
* Make sh(1) a little braver in the face of adversity. sh(1)steve1996-12-211-3/+1
| | | | | | | now handles the getpwd() init problem the same way as bash and ksh do. Also while I was in here, I cleaned up the format a little, removed some unnnecessary #if SYMLINKS cruft, and changed the pwd builtin to use getcwd(3) as Joerg suggested.
* Merge in NetBSD mods and -Wall cleaning.steve1996-12-141-2/+2
| | | | Obtained from: NetBSD, me
* 1) define STATIC as static and not emptyache1996-10-311-2/+2
| | | | 2) replace collate_range_cmp call with its code
* oops, I didn't mean for the unconditional DEBUG code to go in, it's beenpeter1996-09-011-4/+2
| | | | | off in FreeBSD for some time. I realised this a few seconds after the commit started..
* Merge of 4.4-Lite2 sh source, plus some gcc -Wall cleaning. This is apeter1996-09-011-4/+6
| | | | | | | | | | | | | | 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
* Make the shell handle a null command in a &&/|| sequence correctly.joerg1995-08-271-2/+2
| | | | | | | | | | | | | 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)
* Added $Id$dg1994-09-241-0/+1
|
* BSD 4.4 Lite bin Sourcesrgrimes1994-05-261-0/+84
OpenPOWER on IntegriCloud