cp /dev/null

John Kelly jakelly at shtc.net
Tue Nov 1 21:58:48 UTC 2005


On Tue, 01 Nov 2005 19:37:04 +0000, Mike Frysinger <vapier at gentoo.org>
wrote:

>> cp /dev/null myfile
>> 
>> should create a (normal) empty file named "myfile" but it copies the
>> device file /dev/null, as though the -a flag was specified.

>it's been mentioned on the mailing list before and i think there's already a 
>bug ... search the bug tracker before filing one ;P

Thanks, Mike.

I see bug 243, dated 05-03-05.

I looked at the mainline code to see how different it is.  Ugh.  Looks
like a lot.

I think I will just use the real cp and omit cp from my busybox build.




More information about the busybox mailing list