Option after a non-option argument SimplyMepis 3.3.1.1
OK, downloaded new SimplyMepis 3.3.1.1
Got this error when booting after update with Synaptic.
Find : Warning : you have specified the -maxdepth option after a non-option argument -perm, but options are not positional.
(-maxdepth affects tests specified before it as well as after it.) Please specify options before other arguments.
Ok so the question How did I get this error and why, and especially important how would I resolve this issue.
Thanks In advance for support.




Additional Info
For anyone following this post, one thing that scorptig did not mention is that this error (on my system at least) occurs during startup. It is during the mounting phase for the partitions and occurs on partitions set up with the reiser file system. I have been using the reiserfs for the root partition and /home for many months now and have not seen this error so we have a "new improved error"
I too noticed this a few days back (sorry, I'm not positive when), but I'm guessing that it may coincide with the Debian 3.1 upgrade last week.
Jon
error at boot time
As root, edit /etc/init.d/bootclean.sh
Did so
Edited (removed) this part of bootclean.sh
( if cd /tmp && [ "`find . -perm -002 -maxdepth 0`" = "." ]
then
# First remove all old files.
find . -xdev $TEXPR $EXCEPT \
! -type d -depth -print0 | xargs -0r rm -f
# And then all empty directories.
find . -xdev $DEXPR $EXCEPT \
-type d -depth -empty -exec rmdir \{\} \;
rm -f .X*-lock
fi
)
Thanks during boot up the error no longer occurs, thanks for that information.
Thanks hippy for the link
I now have two happy systems again
link
Hippy,
Thanks for the tip.
q
Curing an hurt arm chopping
Curing a hurt arm by chopping it off wouldn't be the wisest move I think. Just read the error message and change it accordingly;
instead of
find . -perm -002 -maxdepth 0
you simply put maxdepth before the non-option argument
find . -maxdepth 0 -perm -002