* Felix Janda <[email protected]> [23.12.2012 20:23]:
> Hi,
> 
> of created directory), the other adds a test script for it. The test script
> uses the non-standard command stat since it seems to be the right tool for
> determining permissions of directories.

i you really want to avoid 'stat' you could use something like:

case "$( ls -l "$file" )" in
        "-rwxr-xr-x"*)
                # true
        ;;
        *)
                # error
        ;;
esac

OR

ls -l "$file" | grep -q ^"-rwxr-xr-x" && ...


bye, bastian
_______________________________________________
Toybox mailing list
[email protected]
http://lists.landley.net/listinfo.cgi/toybox-landley.net

Reply via email to