delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/09/24/05:54:48

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=1.2 required=5.0 tests=AWL,BAYES_50,SARE_RECV_IP_080040,SPF_HELO_PASS,SPF_PASS
X-Spam-Check-By: sourceware.org
X-Trace: 262614313/mk-filter-3.mail.uk.tiscali.com/B2C/$b2c-THROTTLED-DYNAMIC/b2c-CUSTOMER-DYNAMIC-IP/80.41.121.89/None/johne53 AT tiscali DOT co DOT uk
X-SBRS: None
X-RemoteIP: 80.41.121.89
X-IP-MAIL-FROM: johne53 AT tiscali DOT co DOT uk
X-SMTP-AUTH:
X-MUA: Microsoft Outlook Express 6.00.2900.3138Produced By Microsoft MimeOLE V6.00.2900.3350
X-IP-BHB: Once
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: ApsEAFzeukpQKXlZ/2dsb2JhbACKbssbhBsF
Message-ID: <09d601ca3d05$65548850$4001a8c0@mycomputer>
From: "John Emmas" <johne53 AT tiscali DOT co DOT uk>
To: <cygwin AT cygwin DOT com>
References: <005f01ca3c4b$e5385b10$4001a8c0 AT mycomputer> <20090923121735 DOT GA20981 AT calimero DOT vinschen DOT de> <002f01ca3c57$532cd9b0$4001a8c0 AT mycomputer> <001701ca3c76$ef1a0db0$4001a8c0 AT mycomputer> <4ABB3ECA DOT 7030504 AT gmx DOT de>
Subject: Re: Is this a known problem with getenv() ?
Date: Thu, 24 Sep 2009 10:54:28 -0000
MIME-Version: 1.0
X-IsSubscribed: yes
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

----- Original Message ----- 
From: "Matthias Andree"
>
> For the records, the right way to do it is either:
>
> puts(getenv("PATH"));
>
> or
>
> printf("%s\n", getenv("PATH"));
>
Oops, a simple typo.  I'd used the correct printf syntax in the actual code,
but mistyped it here.  Just goes to show that even the most simple code can
be screwed up if not copied & pasted..!  :-(

Anyway, the problem seems to be looking like xterm, so I'll re-post on
cygwin-xfree as Corrina suggested.

Thanks,

John


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