X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL,BAYES_00,J_CHICKENPOX_63,SPF_HELO_PASS X-Spam-Check-By: sourceware.org Message-ID: <49AC0C38.20908@cygwin.com> Date: Mon, 02 Mar 2009 11:41:28 -0500 From: "Larry Hall (Cygwin)" Reply-To: cygwin AT cygwin DOT com User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.19) Gecko/20090101 Remi/2.0.0.19-1.fc8.remi Lightning/0.9 Thunderbird/2.0.0.19 Mnenhy/0.7.5.0 MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: [1.7] Editing in /etc References: <2bf229d30902271645u74a7beb3n64b3312e2889e30b AT mail DOT gmail DOT com> <2bf229d30902271853w1f4f8da5w5728fa179e2bdf30 AT mail DOT gmail DOT com> <2bf229d30902280210h7e39865bw7ff889c879c9f081 AT mail DOT gmail DOT com> <2bf229d30903020536h632e001dg6e1252d359993548 AT mail DOT gmail DOT com> <20090302135823 DOT GA32160 AT calimero DOT vinschen DOT de> <2bf229d30903020741w29ec5dbv514b54a70e2df40c AT mail DOT gmail DOT com> In-Reply-To: <2bf229d30903020741w29ec5dbv514b54a70e2df40c@mail.gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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 Chris Sutcliffe wrote: >>> Perhaps I spoke to soon... I'm still having the issue, this time with >>> a domain based user. >> I can't reproduce that, neither from a console window, nor from a mintty >> window. > > I've tried from both a console window and mintty and experience the > same behaviour. > >>> I executed 'mkpasswd -l -c > /etc/passwd' which again acted as >>> expected, and the /etc/passwd file was created. I went to edit the >>> file with 'vim -D /etc/passwd' to change the users' default group and >>> vim again displayed the message about an error opening input. >> So this does not only occur in /etc? What happens if you start vim >> without the -D flag? > > This only occurs for any file in /etc. For simplicity, I tried: > > $ cd /etc > $ echo "Some text" > test.txt > $ cat test.txt > Some text > $ vim text.txt > > and all I get is a screen with nothing but "test.txt" in the lower > left hand corner. > >>> Looking in /dev I have: >> The content of /dev shouldn't matter, in theory. >> >>> $ ls -ltr /proc/self/fd/0 >>> lrwxrwxrwx 1 csutclif Users 0 Nov 30 2006 /proc/self/fd/0 -> /dev/tty0 >>> >>> however, there is no /dev/tty0. Should there be? If so, how do I create it? >> http://cygwin.com/1.7/cygwin-ug-net/using-specialnames.html#pathnames-posixdevices > > Ah, so the permissions on tty0 look correct: > > $ ls -l /dev/tty0 > crw-rw-rw- 1 csutclif Users 136, 0 Nov 30 2006 /dev/tty0 > >>> I'm at a loss here, could anybody hazard an idea as to what could be >>> happening, or how I could further debug the issue? >> Maybe something in /etc is making problems but I can't imagine what that >> is. This is a typical case where you just have to debug this. Strace >> might reveal a problem here. Or maybe it's a BLODA problem. > > How do I capture the strace output to a file? I tried 'strace vim > /etc/passwd > strace.out' but vim complained about stdout being > redirected. strace -o strace.out vim /etc/passwd -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (508) 893-9889 - FAX Holliston, MA 01746 _____________________________________________________________________ A: Yes. > Q: Are you sure? >> A: Because it reverses the logical flow of conversation. >>> Q: Why is top posting annoying in email? -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/