From: millert Date: Tue, 1 Apr 1997 21:19:05 +0000 (+0000) Subject: Disable editing when in batch mode. Idea from Theo. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=2b15f7cafdbee9f00ad4c65759be2f2b5146bd38;p=openbsd Disable editing when in batch mode. Idea from Theo. This makes ``ftp ftp://some.place.com/some/file &'' work. --- diff --git a/usr.bin/ftp/main.c b/usr.bin/ftp/main.c index 9ba6afcb3b2..6183c74a94a 100644 --- a/usr.bin/ftp/main.c +++ b/usr.bin/ftp/main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: main.c,v 1.25 1997/03/21 20:59:30 millert Exp $ */ +/* $OpenBSD: main.c,v 1.26 1997/04/01 21:19:05 millert Exp $ */ /* $NetBSD: main.c,v 1.20 1997/03/16 14:24:21 lukem Exp $ */ /* @@ -44,7 +44,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)main.c 8.6 (Berkeley) 10/9/94"; #else -static char rcsid[] = "$OpenBSD: main.c,v 1.25 1997/03/21 20:59:30 millert Exp $"; +static char rcsid[] = "$OpenBSD: main.c,v 1.26 1997/04/01 21:19:05 millert Exp $"; #endif #endif /* not lint */ @@ -199,6 +199,8 @@ main(argc, argv) } #ifndef SMALL + if (argc > 0) /* batch mode */ + editing = 0; if (editing) { el = el_init(__progname, stdin, stdout); /* init editline */