This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Issue with system command in Octave 4.0.0 GUI


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]