From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 124992 invoked by alias); 8 Feb 2017 01:02:15 -0000 Mailing-List: contact cygwin-xfree-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-xfree-owner@cygwin.com Reply-To: cygwin-xfree@cygwin.com Mail-Followup-To: cygwin-xfree@cygwin.com Received: (qmail 124972 invoked by uid 89); 8 Feb 2017 01:02:14 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.3 required=5.0 tests=AWL,BAYES_20,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_SPAM,SPF_PASS autolearn=no version=3.3.2 spammy=substitution, H*Ad:U*matt, 0x00, 0x0a X-HELO: mail-pg0-f67.google.com Received: from mail-pg0-f67.google.com (HELO mail-pg0-f67.google.com) (74.125.83.67) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 08 Feb 2017 01:02:13 +0000 Received: by mail-pg0-f67.google.com with SMTP id 204so13492456pge.2 for ; Tue, 07 Feb 2017 17:02:12 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:reply-to:references:to:from:message-id :date:user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=eFtkR9Vo06CNPDKY0Zgjluy69sAKAQVF8x+GRoZVWFs=; b=WEfimWd6cORQ4hHiu2I83OoYA6OCMG2A98BkVnIvbYga5i6ffRHlUjSDP5aHQtI/qB H421YB7g/8pqVnGqTa9ywnamQ3pscAWshgRGPZXQDo5p/Hgto5amDQPsDaWt1jurpYXf jABfPvvwMqrcjVQuTZ1CimtE/2p+DG1lToSWMR2Jp5ZYxKhqjfxJw76c3b4hv3/JCT4w WmDUK9pt2jWsM4Dujrk/qEob2Bf9myJsnWVDpdWZ3Cl2XJtiNoMkHzyNl6hNx8yMQHwg /i8MDBZKdwwn9YfPh1RmQkhaFZ2eDKDcz/zmOEqgKqVRMUsRp7QLQ9I/2q0AMF/5qXor d6tw== X-Gm-Message-State: AIkVDXJUa6TevIBjBtmMAhdnIcoNQOnrIc7J1DUDg3Jf8GNNPWQFBcLpij8+bfI2hVupUA== X-Received: by 10.99.103.133 with SMTP id b127mr23560895pgc.168.1486515731487; Tue, 07 Feb 2017 17:02:11 -0800 (PST) Received: from [10.0.1.127] (ip72-209-49-95.ri.ri.cox.net. [72.209.49.95]) by smtp.gmail.com with ESMTPSA id q22sm14357021pfj.77.2017.02.07.17.02.10 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 07 Feb 2017 17:02:11 -0800 (PST) Subject: Re: -displayfd outputting some garbage? Reply-To: codespunk+cygwin@gmail.com References: <589A6A71.4000703@gmail.com> To: cygwin-xfree@cygwin.com From: "Matt D." Message-ID: <589A6E11.8060704@codespunk.com> Date: Wed, 08 Feb 2017 01:02:00 -0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: <589A6A71.4000703@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2017-02/txt/msg00001.txt.bz2 This is causing issues where I try to perform: echo $(cat .display) Which results in: bash: warning: command substitution: ignored null byte in input 0 Matt D. On 2/7/2017 7:46 PM, Matt D. wrote: > I have an xinit script which outputs the display id to a file with the > following option: > > xinit .. -displayfd 3 3>$HOME/.display > > This outputs correctly '0' but appends 0x00 and 0x0A. Why is it > outputting a null byte and this 0x0A? > > > Matt D. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/