X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:message-id:date:from:subject:to:content-type; q=dns; s=default; b=oiOZw04F1zsLUS+2hmPx7AsEvQ8apEcNPbABch5R9SS j4L4pj6fJlMikGWtDBUWCNwZbrlay6FbIBdTRTKYJ+F2RmF2uW+plWuhv5onkQjh rcwP8sUTWdhLGW0ikIs9hUFOB0u2rxAw0k9H2Wdfn+bTzysWc02t0kFpdlsPzUV8 = DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:message-id:date:from:subject:to:content-type; s=default; bh=wjZUN5iwp6ejT8v4PoOhLiEs+kQ=; b=iBi9F0Sm4j+0FYHE5 Hpzms1KL0R0Oto99iyb96LUkhcAlO6d5hX2g6Oia5O9mX4vulRjfSg0IqB8eG+wu kSXFiY7YnuwpSpPsD5xOrvbBUZHHSAYL3wl1D3vFbnHgFho1uKu02mm6c7hw/sri 0MS4owgaQT/9FrAfj4W4g6W7n0= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=H*MI:1c69fb81, H*M:1c69fb81, H*MI:google, H*M:google X-HELO: mail-oi1-f171.google.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:date:from:subject:to:user-agent; bh=tCj0fGOaFOEu3X+7ZpvLgNeSMPfGcpQ2D7mLGizRDW4=; b=CJqzhqztsJO7ZuHybrPG+KMOU5Oadp0Wx/Z6E7oBC+JExZBd9ksRzVmBVxAqPG4TxU vhjdd9PG0iGo1Xb5XPQRN0VP/yOzVibN73gK9wtxp6vQDyXR1o2DuCD9okA/ZQbKpZZe YQxUB/nNoB3ZVCWufV6gcvr3UIeosI3zqi6k8nfkE4ydKtWjJ22NEDvGijbI/B3cKuwj gSjAqFwK6uRIey0Hj0lxb0OL+YgexggCkHlLdCRjWclljUKDzWN05dUCX5sE0cPCdtEA bmlRW5btjNcn4e+UhCEYkr3a7wSNOAH9fs6/rJxJjoEKRvK0s66FSkISsnoNpPNUVJB9 AO3A== Message-ID: <5c1f242b.1c69fb81.2721c.076d@mx.google.com> Date: Sat, 22 Dec 2018 21:59:07 -0800 (PST) From: Steven Penny Subject: "test" producing unexpected results after "chmod" To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=utf8; format=flowed User-Agent: Tryst/2.8.0 (cup.github.io/umber/awk/tryst) 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 produced: $ cd /tmp $ touch alpha.txt $ test -r alpha.txt; echo "$?" 0 $ chmod -r alpha.txt $ test -r alpha.txt; echo "$?" 0 It seems Cygwin is not able to produce non-readable files. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple