summaryrefslogtreecommitdiffstats
path: root/bin/sh/histedit.c
Commit message (Collapse)AuthorAgeFilesLines
* Delete worthless comments.tjr2002-10-301-5/+1
|
* Set opterr to zero to avoid duplicate warnings from getopt(3) for unknowntjr2002-07-251-0/+1
| | | | options.
* Call el_source() to read the contents of .editrc when line editing is enabled.tjr2002-07-231-0/+1
| | | | | Obtained from: NetBSD MFC after: 2 weeks
* Add a `bind' builtin command, which is simply a wrapper around libedit'stjr2002-07-231-0/+18
| | | | | | | builtin command of the same name. This allows the key bindings for the shell's line editor to be changed. MFC after: 2 weeks
* Consistently use FBSDIDobrien2002-06-301-2/+2
|
* Fix typo causing ``fc -e'' to not work correctly. getopt() sets optarg,tjr2002-06-021-1/+1
| | | | not shoptarg.
* Adding an entry to the history with H_ENTER moves libedit's internaltjr2002-06-021-0/+9
| | | | | history cursor. Reset the cursor after adding the entry to the history when doing ``fc -s'' so the output is correct.
* o __P has been reovedimp2002-02-021-16/+7
| | | | | | | | | | | | | | | | | | 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) { ...
* *** empty log message ***obrien2001-10-011-28/+31
|
* Use PATH_MAX in preference in MAXPATHLEN.imp2001-05-301-1/+2
|
* Fix warnings, some of them serious because sh violated namecracauer2000-04-201-3/+1
| | | | | | | | 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.
* $Id$ -> $FreeBSD$peter1999-08-271-1/+1
|
* Add rcsid. Spelling.charnier1998-05-181-3/+5
|
* When NO_HISTORY is defined and the history command is usedsteve1997-04-281-3/+16
| | | | | | show an error message. Inspired by: NetBSD
* compare return value from getopt against -1 rather than EOF, per the finalimp1997-03-281-2/+2
| | | | posix standard on the topic.
* 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.
* Merge in NetBSD mods and -Wall cleaning.steve1996-12-141-15/+12
| | | | Obtained from: NetBSD, me
* Misc cleanups and fixes from Bruce:peter1996-09-031-2/+2
| | | | | | | | | | - don't put \n on error() calls, error adds it already. - don't prepend "ulimit" on error() calls in miscbltin.c. - getopt typo on ulimit -p -> -u conversion - get/setrlimit() calls were not being error checked ulimit formatting cleanup from me, use same wording as bash on Bruce's suggestion. Add ulimit arg to output on Joerg's suggestion.
* Merge of 4.4-Lite2 sh source, plus some gcc -Wall cleaning. This is apeter1996-09-011-10/+42
| | | | | | | | | | | | | | 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
* Remove trailing whitespace.rgrimes1995-05-301-9/+9
| | | | Reviewed by: phk
* From "Philippe Charnier" <charnier@lirmm.fr>:dg1995-05-051-1/+5
| | | | | | | | | 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.
* Added $Id$dg1994-09-241-0/+2
|
* BSD 4.4 Lite bin Sourcesrgrimes1994-05-261-0/+442
OpenPOWER on IntegriCloud