-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Warning: UNIT keyword to SPAWN may not yet be fully implemented (proceeding) #1910
Comments
@mzechmeister according to the internal documentation the UNIT keyword has been programmed by Greg Huey in ... 2002. I happen to have ds9 on my machine and
However
|
Putting the following snippet line by line into the command line, it works in idl, but hangs/blocks in gdl:
So sending data directly via piping and communication via |
Another issue seems with
In idl the output is:
In gdl
(BTW, from the example Similar, for |
Thanks you @mzechmeister for your feedback The case The same for Unfortunately, NO line in |
I take some time to test, and yes, basic exchange with DS9 is OK ( |
I am clearly not an expert but it seems the problem for EXIT_STATUS come from the lines close to 2145 in
I don't know why it was OK before. From the doc, it seems the way we manage status is not what we should do ! |
#1917 solves for this problem. Thanks to @jkohnert for finding the problem introduced when adding the code for IDL_IDLbridge. Please test and reopen a new issue if necessary. for the record, I understand that at least two GDL programs may have similar use as ds9: |
One can still not communicate via the unit keyword. Here an even more basic example IDL> spawn, 'bc 1>&2', unit=unit
IDL> printf, unit, '1+1'
IDL> 2 Since stdout seems to be captured, the example redirects it to stderr. However, in gdl it just prints in the input
Moreover, the interactive console behaves strange after spawning. When typing one has to hit a character several times until it appears. I haven't tried yet a birectional pipe with I would like to reopen the issue, but I didn't have the button (permissions?) for that. |
I would like to switch to gdl. However, communication with the shell is essential.
E.g. I wrote wrappers for gnuplot and ds9.
Yet, a simple
spawn
-command on Linux yieldsand the script console starts hanging.
I'm a bit surprised that after years this is not still implemented.
When will it be implemented?
The text was updated successfully, but these errors were encountered: