Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 19 Feb 1996 00:12:15 +0100 (MET)
From:      J Wunsch <j@uriah.heep.sax.de>
To:        ache@astral.msk.su (=?KOI8-R?Q?=E1=CE=C4=D2=C5=CA_=FE=C5=D2=CE=CF=D7?=)
Cc:        CVS-committers@freefall.freebsd.org, cvs-all@freefall.freebsd.org, cvs-bin@freefall.freebsd.org, wosch@freefall.freebsd.org
Subject:   Re: cvs commit:  src/bin/mv mv.1 mv.c
Message-ID:  <199602182312.AAA09188@uriah.heep.sax.de>
In-Reply-To: <tCkav9nGI5@ache.dialup.ru> from "=?KOI8-R?Q?=E1=CE=C4=D2=C5=CA_=FE=C5=D2=CE=CF=D7?=" at Feb 19, 96 00:25:02 am

next in thread | previous in thread | raw e-mail | index | archive | help
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. ;-)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199602182312.AAA09188>