delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2015/02/09/15:40:00

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: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 AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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-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 AT towo DOT 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 AT cygwin DOT com
Subject: Re: /dev/tty does not work from shell
References: <1598899839 DOT 20150209072327 AT yandex DOT ru> <54D8741A DOT 5020805 AT towo DOT net> <20150209113620 DOT F876DF38 DOT helmut DOT karlowski AT ish DOT de>
In-Reply-To: <20150209113620.F876DF38.helmut.karlowski@ish.de>
X-TagToolbar-Keys: D20150209213830743
X-UI-Out-Filterresults: notjunk:1;
X-IsSubscribed: yes

Am 09.02.2015 um 11:36 schrieb Helmut Karlowski:
> --------------------------------------------------
> Thomas Wolff <towo AT towo DOT 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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019