From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14572 invoked by alias); 22 Jun 2017 15:57:44 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 14462 invoked by uid 89); 22 Jun 2017 15:57:42 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.8 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=online X-HELO: mail-it0-f49.google.com Received: from mail-it0-f49.google.com (HELO mail-it0-f49.google.com) (209.85.214.49) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 22 Jun 2017 15:57:41 +0000 Received: by mail-it0-f49.google.com with SMTP id m47so23065449iti.0 for ; Thu, 22 Jun 2017 08:57:40 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to; bh=5tk5z8kgZhZt3d0CjyQ3qi5djzjDusQiqXzSNUj/d8g=; b=bzitreHQ/kYHoHiPQfCDwwLVoByGgPCeneJVGf7yTJKr4fD9M67IW0HmwQFpC2QSHZ tyvGxIwXnx2dHjYq9iI7zfKTbpKLae7+SXiV7TgxxKuGTdyeOxfvu1wJ3/ykBufZaNHr QrBdGXQY+ZSnYjlZgf8g5qwPzL8ROVPk5c9iifxtHNRlvk/cr/i8srGJKGmub4Fa0NFQ NigK0dKfl6yI/xNkSqnhy2GyOYzXPNfWlYGwNzO9LJDETgutjbOOH9JXWPBXGXG0QI47 pGH3Cq6K8T5Tuii3ewwaoJkPB8pZZr/c6/C2yVwtZa5iE2xYjqnY2x5ht5I+jHEdWl4d f1eA== X-Gm-Message-State: AKS2vOwmnTHtot845vgFq3m21iBd3rv6X5WOfp/XJ/MGkbESz4jlNXtU 4OJi9NiwsyfYdHdXJDCSc+eQQ+nIYQ== X-Received: by 10.36.219.132 with SMTP id c126mr2778758itg.73.1498147059182; Thu, 22 Jun 2017 08:57:39 -0700 (PDT) MIME-Version: 1.0 Received: by 10.36.2.14 with HTTP; Thu, 22 Jun 2017 08:57:18 -0700 (PDT) In-Reply-To: <4eae81da-6519-b071-7146-b7396b547d34@gmail.com> References: <4eae81da-6519-b071-7146-b7396b547d34@gmail.com> From: Wouter van Doorn Date: Thu, 22 Jun 2017 15:57:00 -0000 Message-ID: Subject: Re: Compiled programs fail to run from Cygwin Terminal, but work from windows cmd To: cygwin@cygwin.com Content-Type: text/plain; charset="UTF-8" X-IsSubscribed: yes X-SW-Source: 2017-06/txt/msg00268.txt.bz2 Nice thought, but no, that's not it. The standard utilities behave normally, only the things I compile myself stay schtumm. On 22 June 2017 at 14:57, cyg Simple wrote: >> >> STOP PRESS: in gdb, the output IS there: >> User-PC-> gdb hello.exe >> GNU gdb (GDB) (Cygwin 7.10.1-1) 7.10.1 >> Copyright (C) 2015 Free Software Foundation, Inc. >> License GPLv3+: GNU GPL version 3 or later >> This is free software: you are free to change and redistribute it. >> There is NO WARRANTY, to the extent permitted by law. Type "show copying" >> and "show warranty" for details. >> This GDB was configured as "i686-pc-cygwin". >> Type "show configuration" for configuration details. >> For bug reporting instructions, please see: >> . >> Find the GDB manual and other documentation resources online at: >> . >> For help, type "help". >> Type "apropos word" to search for commands related to "word"... >> Reading symbols from hello.exe...done. >> (gdb) run >> Starting program: /home/User/c_dir/hello.exe >> [New Thread 6868.0x5b0] >> [New Thread 6868.0x18dc] >> [New Thread 6868.0x1990] >> Hello, world! >> [Thread 6868.0x1990 exited with code 0] >> [Inferior 1 (process 6868) exited normally] >> (gdb) >> >> Which is dandy, but then why, outside of gdb, is there nothing at all? >> Still stumped! > > Is your prompt overwriting the output of the program? > > Try: > > $ hello | cat > $ hello | grep ello > > etc. > > -- > cyg Simple > > -- > 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 > -- 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