%G isn't actually part of POSIX, so change to %Y.
[mmh] / test / repl /
drwxr-xr-x   ..
-rwxr-xr-x 1161 test-if-str