lobase

Linux port of OpenBSDs userland.
Log | Files | Refs | README

commit 0b5d491d27604eb65cc92f64c1169bad9a0761e1
parent da751425eefe96744932e61e9372714b7d8b402b
Author: Duncaen <mail@duncano.de>
Date:   Fri, 19 May 2017 19:04:00 +0200

usr.bin/bc: update to OPENBSD_6_1

Diffstat:
usr.bin/bc/bc.y | 7++++---
1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/usr.bin/bc/bc.y b/usr.bin/bc/bc.y @@ -1,5 +1,5 @@ %{ -/* $OpenBSD: bc.y,v 1.49 2015/11/23 09:58:55 otto Exp $ */ +/* $OpenBSD: bc.y,v 1.50 2017/02/23 06:41:46 otto Exp $ */ /* * Copyright (c) 2003, Otto Moerbeek <otto@drijf.net> @@ -975,7 +975,7 @@ yyerror(char *s) putchar('\\'); putchar(*p); } - fputs("]pc\n", stdout); + fputs("]ec\n", stdout); free(str); } @@ -1141,7 +1141,8 @@ main(int argc, char *argv[]) argc -= optind; argv += optind; - interactive = isatty(STDIN_FILENO); + interactive = isatty(STDIN_FILENO) && isatty(STDOUT_FILENO) && + isatty(STDERR_FILENO); for (i = 0; i < argc; i++) sargv[sargc++] = argv[i];