diff options
Diffstat (limited to 'usr.bin/bc/bc.y')
-rw-r--r-- | usr.bin/bc/bc.y | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/bc/bc.y b/usr.bin/bc/bc.y index 22b850e6540..b1ee4e467df 100644 --- a/usr.bin/bc/bc.y +++ b/usr.bin/bc/bc.y @@ -1,5 +1,5 @@ %{ -/* $OpenBSD: bc.y,v 1.35 2011/06/01 07:18:23 otto Exp $ */ +/* $OpenBSD: bc.y,v 1.36 2011/06/03 06:10:31 otto Exp $ */ /* * Copyright (c) 2003, Otto Moerbeek <otto@drijf.net> @@ -1145,6 +1145,8 @@ main(int argc, char *argv[]) el_set(el, EL_EDITOR, "emacs"); el_set(el, EL_SIGNAL, 0); el_set(el, EL_PROMPT, dummy_prompt); + el_set(el, EL_ADDFN, "bc_eof", "", bc_eof); + el_set(el, EL_BIND, "^D", "bc_eof"); el_source(el, NULL); } } else { |