]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/commit
MFC r243072:
authoreadler <eadler@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 26 Nov 2012 05:13:57 +0000 (05:13 +0000)
committereadler <eadler@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 26 Nov 2012 05:13:57 +0000 (05:13 +0000)
commit390fef982ef5cb02758d415f66f2e492857304f1
tree50e7fe2d38aa7bccb231991f42df1b37e1009943
parentf0d57fb2ecc267c1617ba5ffea9bfbadb4ce0462
MFC r243072:
Follow the behavior as specified in POSIX:

if (exists AND (NOT f_option) AND
((not_writable AND input_is_terminal) OR i_option))
prompt

in particular, add the test for input_is_terminal

PR: bin/173039
Approved by: cperciva (implicit)

git-svn-id: svn://svn.freebsd.org/base/stable/9@243557 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
bin/mv/mv.c