Re: find(1) assertion for folder with a sub-folder named `x:'

2009-06-23 Thread Haojun Bao
"Phil Betts" writes: > Corinna Vinschen wrote: >> On Jun 19 17:55, Haojun Bao wrote: >> > hi, >> > >> > Here's a test case to make find(1) assertion: >> > >> > mkdir no-such-dir/foo/bar: -p >> > >> > #this will not assert >> > find no-such-dir/ >> > >> > mkdir no-such-dir/foo/c: -

Re: find(1) assertion for folder with a sub-folder named `x:'

2009-06-23 Thread Ralph Hempel
Phil Betts wrote: mkdir -p foo/c: cd foo rm -rf c:/ In case you can't see why that's bad, DON'T TRY IT!! Don't even copy it, because you will accidentally paste it into a terminal window, you will get to say "oopsy!" [1], and you will hurt your forehead on your keyboard. [OT] I have a wo

RE: find(1) assertion for folder with a sub-folder named `x:'

2009-06-23 Thread Phil Betts
Corinna Vinschen wrote: > On Jun 19 17:55, Haojun Bao wrote: > > hi, > > > > Here's a test case to make find(1) assertion: > > > > mkdir no-such-dir/foo/bar: -p > > > > #this will not assert > > find no-such-dir/ > > > > mkdir no-such-dir/foo/c: -p > > I think the right answer here

Re: find(1) assertion for folder with a sub-folder named `x:'

2009-06-19 Thread Corinna Vinschen
On Jun 19 17:55, Haojun Bao wrote: > hi, > > Here's a test case to make find(1) assertion: > > mkdir no-such-dir/foo/bar: -p > > #this will not assert > find no-such-dir/ > > mkdir no-such-dir/foo/c: -p I think the right answer here is "don't do that". Don't create file