cp -rl dir dir in 7.1 not so great

2009-02-26 Thread Mikael Magnusson
In my old 6.x something, cp would just say cp: cannot copy a directory, `dir', into itself, `dir/dir' (it would still do it, but only once) In 7.1 I get a result like this: % timeout 1 cp -rl dir dir % ls -R dir|wc -l 1063 Without the -l it still behaves properly. -- Mikael Magnusson removed

Re: cp -rl dir dir in 7.1 not so great

2009-02-27 Thread Jim Meyering
Mikael Magnusson wrote: > In my old 6.x something, cp would just say > cp: cannot copy a directory, `dir', into itself, `dir/dir' > (it would still do it, but only once) > In 7.1 I get a result like this: > > % timeout 1 cp -rl dir dir > % ls -R dir|wc -l > 1063 > > Without the -l it still behave