- # testcases
- ksh93 -c 'builtin mv ; rm -f /tmp/x y ; touch /tmp/x ; if mv /tmp/x y ; then print "OK" ; else print "FAIL" ; fi ; true'
- ksh93 -c 'builtin mv ; rm -f /tmp/x y ; touch /tmp/x ; if cp -p /tmp/x y ; then print "OK" ; else print "FAIL" ; fi ; true'
- ksh93 -c 'builtin cp ; rm -f /tmp/x y ; touch /tmp/x ; if cp -p /tmp/x y ; then print "OK" ; else print "FAIL" ; fi ; true'
- ksh93 -c 'builtin cp ; rm -f x y ; touch x ; if cp -p /tmp/x y ; then print "OK" ; else print "FAIL" ; fi ; true'
- ksh93 -c 'builtin cp ; rm -f x y ; touch x ; if cp -p x y ; then print "OK" ; else print "FAIL" ; fi ; true'
- ksh93 -c 'builtin cp ; rm -f x y ; touch x ; if /usr/bin/cp -p x y ; then print "OK" ; else print "FAIL" ; fi ; true'
- ksh93 -c 'builtin id ; rm -f x ; touch x ; if chown "$(id -u -n):$(id -g -n)" x ; then print "OK" ; else print "FAIL" ; fi ; true'
Testcases for permission issues
Posted by Anonymous on Mon 12th Feb 2024 07:01
raw | new post
modification of post by Anonymous (view diff)
Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.