Quote:
Originally Posted by rs232
if [ ! -f "$NewName" ] && [ "$NewName" != "$OldName" ]; then
as the script was complaining.
|
AFAIK there's nothing wrong with doing it that way but it is unconventional. As long as busybox' bash is the same as others (some things are different under busybox) the, preferring [[ .. ]] over [ .. ] for reasons explained
here, you could try
if [[ ! -f "$NewName" && "$NewName" != "$OldName" ]]; then
What was the "complaining" message?
How big are the files? I vaguely recall a hard-to-solve busybox problem that was eventually solved when we realised that some utilities did not work with files greater than some size (2 GB?) and another version of
ls (or
find ... ?) had to be used -- it was part of the busybox installation but not the first found when searching the $PATH directories ... ?