Imported from ../bash-3.0.tar.gz.
[platform/upstream/bash.git] / examples / functions / xfind.bash
index 578e883..6d29038 100644 (file)
@@ -39,7 +39,7 @@ xfind()
        # and directories that start with a period.
 
        for x in * ; do
-               if [ -d "$x" -a ! -L "$x" ] ; then 
+               if [ -d "$x" ] && [ ! -L "$x" ] ; then 
                        $FUNCNAME "$x" "$2" "$action"
                fi
        done