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:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type; q=dns; s=default; b=oxmJ7di GfuTkG9OvTZFvHK+9h6DPnbR6za+L/bOzLmkFlWtPoj60+NuZ9H2j98dsXbRDb1u umA5ijCz/rnQyfIgzNx2cpcRz7Q1t6zI7I9hba9vhX1HeZYQckrPqX6kOjvk2e1J rcnxpFBt612XAm9Khc2A59ZqxkNm2a4r4Two= 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:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type; s=default; bh=4EjWet5MjU3oD omiK7jH0HeQPW4=; b=Vg1AqQEBCoTKIt93sEHvVNgQvl/9XFNgq6BdRLFOIrkEp hbP5H8WJPUC9Y8CRTuSGq1b+CfrNNMTzXGvQiwWRhhEPsnHuUB2tc6L9Plin4dNA 9t8nM9NKt++33fDEqu4trjKJRCkS4NmrLHNrGeMEByg+5urwhuu/6NQaWx0e2c= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , 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=-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 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 In-Reply-To: <4eae81da-6519-b071-7146-b7396b547d34@gmail.com> References: <4eae81da-6519-b071-7146-b7396b547d34 AT gmail DOT com> From: Wouter van Doorn Date: Thu, 22 Jun 2017 16:57:18 +0100 Message-ID: Subject: Re: Compiled programs fail to run from Cygwin Terminal, but work from windows cmd To: cygwin AT cygwin DOT com Content-Type: text/plain; charset="UTF-8" X-IsSubscribed: yes 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