X-Recipient: archive-cygwin@delorie.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:mime-version:to:subject
	:references:in-reply-to:content-type:content-transfer-encoding;
	 q=dns; s=default; b=XvXJfcSsyEFVzlJ6Asql7uGcFwWV5/7zB3hYqgp/qOP
	KLLn7eEBfgzi/zeNgmBgHl/W+wZO8epbFx3ILeeRXKXFm9KC2ND531o5i/zGKyhr
	PiIHgB5FTJL7XSP8UlqjQ+PFzc9yw+7BZhHzbKTjBgkzVAlpSK0VziJNTC4J2hL8
	=
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:mime-version:to:subject
	:references:in-reply-to:content-type:content-transfer-encoding;
	 s=default; bh=LxdEGtJ16uRJB0fRBFzytN5QvXU=; b=kqT1kzpWRWAcUGEzC
	HrHS5NZW4UaaHUE1RaJnw1O7jxlHArh9xBCizV9VAoWFUSEgMuoziAq/9wxFv6Su
	Z0QNU3q8j9QDzved0HtrvEx+SCu9eCZZ1TmLrrxnMPZM1BIJExpj4JHioBSsgBai
	5QIyrtcyKhiPLHTsMRqSufeATQ=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-0.8 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2
X-HELO: mout.kundenserver.de
Message-ID: <54D91AC6.8030101@towo.net>
Date: Mon, 09 Feb 2015 21:38:30 +0100
From: Thomas Wolff <towo@towo.net>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: /dev/tty does not work from shell
References: <1598899839.20150209072327@yandex.ru> <54D8741A.5020805@towo.net> <20150209113620.F876DF38.helmut.karlowski@ish.de>
In-Reply-To: <20150209113620.F876DF38.helmut.karlowski@ish.de>
X-TagToolbar-Keys: D20150209213830743
Content-Type: text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding: 8bit
X-UI-Out-Filterresults: notjunk:1;
X-IsSubscribed: yes

Am 09.02.2015 um 11:36 schrieb Helmut Karlowski:
> --------------------------------------------------
> Thomas Wolff <towo@towo.net> wrote:
> (09/02/2015 09:47)
>
>> Am 09.02.2015 um 05:23 schrieb Andrey Repin:
>>> Greetings, Thomas Wolff!
>>>
>>>> echo bla > /dev/tty
>>>> bash: /dev/tty: cannot overwrite existing file
>>> WJFFM
>>>
>>> Please be more specific.
>>> I.e. terminal type and any other relevant information would help resolving
>>> your issue.
>>>
>>> (Though, I fail to replicate it with both mintty and native terminal.)
>> Hmm, I've observed this for a while already on all my cygwin
>> installations (64bit/32bit on 64/32bit Windows, ...)
>> and in different terminals (mintty, console, ...), so I'd thought it
>> would be reproducible. Pondering...
> bash prints that message when it has the noclobber-option set. Maybe
> you check it?
Yes, indeed, the effect shows up after set -o noclobber;
however, this shouldn’t apply to device files (and doesn’t on other 
systems) -
man bash: “redirection will fail if the file ... is a regular file.”
------
Thomas

--
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

