Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 07 Jul 2014 18:00:38 +0100
From:      Arthur Chance <freebsd@qeng-ho.org>
To:        Ralf Mardorf <ralf.mardorf@rocketmail.com>, freebsd-questions@freebsd.org
Subject:   Re: [Bulk] Re: The name "grep"
Message-ID:  <53BAD236.3060501@qeng-ho.org>
In-Reply-To: <1404750481.19389.12.camel@archlinux>
References:  <20140707075443.d47ca06a.freebsd@edvax.de> <53BA4F77.60907@qeng-ho.org> <20140707104403.5a0694ff.freebsd@edvax.de> <53BA71A7.9040208@qeng-ho.org> <1404728392.19389.1.camel@archlinux> <53BA9EC0.9000201@qeng-ho.org> <20140707160528.7ecf9855.freebsd@edvax.de> <1404750481.19389.12.camel@archlinux>

next in thread | previous in thread | raw e-mail | index | archive | help
On 07/07/2014 17:28, Ralf Mardorf wrote:
>
>> On Mon, 07 Jul 2014 14:21:04 +0100, Arthur Chance wrote:
>>> 	dd [options] [ infile [ outfile ]]
>
> This way users by accident could mistake the infile with the outfile.
>
> We dislike to randomly screw up infile and outfile, so IMO it makes
> sense to force if= and of= "operands".

There's no problem about which file is input and which output with cp or 
mv, so why on earth would it be a problem with a sane version of dd?

If you really need a hand holding indication of which file is which,

	dd -i $infile -o $outfile

would be in the Unix spirit, unlike the existing form. And with an 
interactive shell you could use filename completion which fails with the 
existing dd.



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