Date: Mon, 4 Oct 1999 17:06:20 -0400 (EDT) From: x@asdf.com To: freebsd-questions@FreeBSD.ORG Subject: recursive cat weirdness Message-ID: <Pine.LNX.4.02A.9910041658360.19654-100000@cobalt.novagate.net>
next in thread | raw e-mail | index | archive | help
Hello! A co-worker found something interesting today by accident. He tried it on a FreeBSD 1.2.6 machine, and i just tried it on my 3.3 machine. You make two files that can have as many lines as you want. Just one line of garbage will do. Then you cat file1 file2 > file2 it just hangs and starts eating CPU. Then after you Ctrl C out and check, the file2 has gotten huge (well, at least if you let it run long enough). I tried this on a version of Linux and it wouldn't let me by saying something like "output file is input file". I guess this is not a big deal but if someone wanted to be a jerk they could just make two little files and eat up your disk space and CPU until you noticed it running. -Dan To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.LNX.4.02A.9910041658360.19654-100000>