1 2 3 4 5 6
saved_umask=$(umask) umask 0 busybox uuencode foo </dev/null | head -n 1 | grep -q 666 status=$? umask $saved_umask return $status