have ocaml support the '-' option (for standard input) #2757
Original bug ID: 352
Full_Name: Sven Luther
Note : this is a feature wish, i didn't find the 'priority' entry in the bug
I wanted to run the labgltk examples from the lablgtk debian package, they are
it is easy to run the uncompressed ones (lablgtk -labels file.ml), but not so
I thought it would be nice to be able to do as follows :
gunzip -c file.ml.gz | lablgtk -labels -
but ocaml clearly don't support this syntax yet.
I know about at least 2 workaround :
(gunzip -c testgtk.ml.gz; echo ";;") | lablgtk -labels
but this will scroll up the display, and is not so nice.
gunzip -c testgtk.ml.gz | lablgtk -labels /dev/fd/0
but i don't think this is the nicest of solutions
< let filename = find_in_path !Config.load_path name in
or something such more appropriate.
Thanks to Nicolas GEORGE firstname.lastname@example.org, for hinting me to those and
What do you think of it ? Is this something that would be a nice addition to
Also you could link ocaml with zlib, so as to be able to read compressed files
The text was updated successfully, but these errors were encountered: