summaryrefslogtreecommitdiff
path: root/bin/ksh/sh.h
diff options
context:
space:
mode:
authorJeremie Courreges-Anglas <jca@cvs.openbsd.org>2017-08-30 17:08:46 +0000
committerJeremie Courreges-Anglas <jca@cvs.openbsd.org>2017-08-30 17:08:46 +0000
commit39bd4e025511a2a25ff65123b281262d6ae60bdc (patch)
tree8602acd3fcdf4c03a53ac56cf48811f6711192c5 /bin/ksh/sh.h
parentdcae3930991f3cb19b6e03690681199c924ff8b2 (diff)
Implement HISTCONTROL ignoredups & ignorespace features
ignoredups: don't save the current line if it is identical to the last history line. ignorespace: don't save the current line if it starts with a space ok anton@ millert@
Diffstat (limited to 'bin/ksh/sh.h')
-rw-r--r--bin/ksh/sh.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/ksh/sh.h b/bin/ksh/sh.h
index b2b5164b887..6f0be4316d6 100644
--- a/bin/ksh/sh.h
+++ b/bin/ksh/sh.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: sh.h,v 1.62 2017/08/30 17:02:53 jca Exp $ */
+/* $OpenBSD: sh.h,v 1.63 2017/08/30 17:08:45 jca Exp $ */
/*
* Public Domain Bourne/Korn shell
@@ -457,6 +457,7 @@ void hist_finish(void);
void histsave(int, const char *, int);
#ifdef HISTORY
int c_fc(char **);
+void sethistcontrol(const char *);
void sethistsize(int);
void sethistfile(const char *);
char ** histpos(void);