deleting a directory in solaris,Ksh
rm -r /cbbco开发者_开发百科nfg/BRCH/tmp
rm: cannot determine if this is an ancestor of the current working directory
rm
is confused as to whether you are removing a directory that is part of the present working directory. check to see if there is a link or something that is causing this.
From what I remember this is an old bug in Solaris 10.
Ah-ha.
Have a look at this OpenSolaris bug report.
What about trying to do the delete recursively using find? Maybe something like:
find /cbbconfg -depth -exec rm -rf {} \;
I have solved it in the following way!! I have moved to that directory and ran the command :D
精彩评论