Re: "test" producing unexpected results after "chmod"

2018-12-23 Thread Andrey Repin
Greetings, Steven Penny! > With Linux, these commands produce expected results: > $ cd /tmp > $ touch alpha.txt > $ test -r alpha.txt; echo "$?" > 0 > $ chmod -r alpha.txt > $ test -r alpha.txt; echo "$?" > 1 > $ chmod +r alpha.txt > $ test -r alpha.txt; echo "

Re: "test" producing unexpected results after "chmod"

2018-12-22 Thread Marco Atzeri
Am 23.12.2018 um 06:59 schrieb Steven Penny: With Linux, these commands produce expected results:    $ cd /tmp    $ touch alpha.txt    $ test -r alpha.txt; echo "$?"    0    $ chmod -r alpha.txt    $ test -r alpha.txt; echo "$?"    1    $ chmod +r alpha.txt    $ test -r alpha.txt; echo

"test" producing unexpected results after "chmod"

2018-12-22 Thread Steven Penny
With Linux, these commands produce expected results: $ cd /tmp $ touch alpha.txt $ test -r alpha.txt; echo "$?" 0 $ chmod -r alpha.txt $ test -r alpha.txt; echo "$?" 1 $ chmod +r alpha.txt $ test -r alpha.txt; echo "$?" 0 However with Cygwin, unexpected results are