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:subject:to:references:from:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; q=dns; s=default; b=a1DIhwfkJGyJg/+H 2OvEkVl0ZLvdHpWAZqwEGxsA+FtLjIxZXwIBjYEdUsVZ1zMmMszaSHKfhdAahAlm B7XSKrdOgt3wdJ0FmUZDP9uoE6DvJs3D2IO8SO7V3uMaroowzBUOIfWB0xaTPqX4 SJdj2VYnSPfl2kIdudCucZHyOSg= 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:subject:to:references:from:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; s=default; bh=7lBQOQxLknDN+0KR7seVWU pOco4=; b=GsGyLo/dfxf4/Z4wZUjkqGAE52F7FFA9UddCPm10fVlbPnPKayZb8y TZvESmTLdSL2FqQYmcV6kDDndMF3bnyLDhAd1ae854Pj0sop4qvOMisPOwHnSCNO qYEc4H3eVMSXuOfNBusHaxcSfy/DezdCyac1PH2EhXU8NRyU0B7h8= 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=-2.1 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-wi0-f179.google.com X-Received: by 10.180.96.166 with SMTP id dt6mr4803185wib.38.1445348236733; Tue, 20 Oct 2015 06:37:16 -0700 (PDT) Subject: Re: Issue with system command in Octave 4.0.0 GUI To: cygwin AT cygwin DOT com References: <305009783 DOT 9545 DOT 1445281910923 DOT JavaMail DOT yahoo AT mail DOT yahoo DOT com> <305009783 DOT 9545 DOT 1445281910923 DOT JavaMail DOT yahoo AT mail DOT yahoo DOT com> From: Marco Atzeri Message-ID: <5626438A.2080006@gmail.com> Date: Tue, 20 Oct 2015 15:37:14 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: <305009783.9545.1445281910923.JavaMail.yahoo@mail.yahoo.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes On 19/10/2015 21:11, James R. Phillips wrote: > Hello, > > The new Octave 4.0.0 GUI is very impressive. I did discover an issue, though. > > Using the system command with 'bash" as an argument, i.e, > >> system('bash') > > should yield a bash command prompt in the command window. However, this causes the command line interface to hang. > > This works in the command-line version.. > > The system command with other legal bash commands (e.g. 'ls') seems to work fine in the GUI. > > I am running 64-bit Cygwin. Output of cygcheck attached. > > Regards > > James R. Phillips > Hi James, yes, your old package is grown up a bit. About your question, I am not so sure that it is expected to work. https://www.gnu.org/software/octave/doc/interpreter/Controlling-Subprocesses.html The bash process is not run in a proper terminal so it has no access to command inputs, while octave is waiting for its termination. If you use system("xterm"), than bash works in a separate terminal and octave does not hang. Regards Marco -- 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