From owner-freebsd-commit Sun Feb 18 15:22:12 1996 Return-Path: owner-commit Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id PAA11419 for freebsd-commit-outgoing; Sun, 18 Feb 1996 15:22:12 -0800 (PST) Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id PAA11398 for cvs-all-outgoing; Sun, 18 Feb 1996 15:22:04 -0800 (PST) Received: from irz301.inf.tu-dresden.de (irz301.inf.tu-dresden.de [141.76.1.11]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id PAA11370 Sun, 18 Feb 1996 15:21:51 -0800 (PST) Received: from sax.sax.de by irz301.inf.tu-dresden.de (8.6.12/8.6.12-s1) with ESMTP id AAA29222; Mon, 19 Feb 1996 00:21:44 +0100 Received: by sax.sax.de (8.6.11/8.6.12-s1) with UUCP id AAA09983; Mon, 19 Feb 1996 00:21:43 +0100 Received: (from j@localhost) by uriah.heep.sax.de (8.7.3/8.6.9) id AAA09188; Mon, 19 Feb 1996 00:12:16 +0100 (MET) From: J Wunsch Message-Id: <199602182312.AAA09188@uriah.heep.sax.de> Subject: Re: cvs commit: src/bin/mv mv.1 mv.c To: ache@astral.msk.su (=?KOI8-R?Q?=E1=CE=C4=D2=C5=CA_=FE=C5=D2=CE=CF=D7?=) Date: Mon, 19 Feb 1996 00:12:15 +0100 (MET) Cc: CVS-committers@freefall.freebsd.org, cvs-all@freefall.freebsd.org, cvs-bin@freefall.freebsd.org, wosch@freefall.freebsd.org Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) In-Reply-To: from "=?KOI8-R?Q?=E1=CE=C4=D2=C5=CA_=FE=C5=D2=CE=CF=D7?=" at Feb 19, 96 00:25:02 am X-Phone: +49-351-2012 669 X-Mailer: ELM [version 2.4 PL24 ME8a] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-commit@FreeBSD.ORG Precedence: bulk As =?KOI8-R?Q?=E1=CE=C4=D2=C5=CA_=FE=C5=D2=CE=CF=D7?= wrote: > > option -f and -i are exclusive This breaks Posix: The following options shall be supported by the implementation: -f Do not prompt for confirmation if the destination path exists. Any previous occurrences of the -i option shall be ignored. -i Prompt for confirmation if the destination path exists. Any previous occurrences of the -f option shall be ignored. Specifying more than one of the -f or -i options shall not be considered an error. The last option specified shall determine mv's behavior. > > ignore -i option if file descriptor stdin not refers to a valid > > terminal type device > > It seems that it breaks > yes | mv -i > at least. > What POSIX say about it? 4.43.5.1 Standard Input Used to read an input line in response to each prompt specified in Standard Error. 4.43.6.2. Otherwise, the standard input shall not be used. So it doesn't look that Posix would allow a special treatment of terminal devices. -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-)