You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Original bug ID: 352 Reporter: administrator Assigned to:@damiendoligez Status: closed (set by @damiendoligez on 2011-12-30T16:29:41Z) Resolution: fixed Priority: normal Severity: feature Fixed in version: 3.13.0+dev Category: ~DO NOT USE (was: OCaml general) Related to:#5232
Original bug ID: 352
Reporter: administrator
Assigned to: @damiendoligez
Status: closed (set by @damiendoligez on 2011-12-30T16:29:41Z)
Resolution: fixed
Priority: normal
Severity: feature
Fixed in version: 3.13.0+dev
Category: ~DO NOT USE (was: OCaml general)
Related to: #5232
Bug description
Full_Name: Sven Luther
Version: 3.01
OS: debian GNU/linux
Submission from: lambda.u-strasbg.fr (130.79.90.63)
Note : this is a feature wish, i didn't find the 'priority' entry in the bug
fill form, so ...
Hello, ...
I wanted to run the labgltk examples from the lablgtk debian package, they are
on a read only directory, and some of them are compressed.
it is easy to run the uncompressed ones (lablgtk -labels file.ml), but not so
easy to run the compressed ones.
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
< let ic = open_in_bin filename in
to :
or something such more appropriate.
Thanks to Nicolas GEORGE nicolas.george@ens.fr, for hinting me to those and
provide the (untested) patch.
What do you think of it ? Is this something that would be a nice addition to
ocaml, or is it not worth it, to difficult to do ?
Also you could link ocaml with zlib, so as to be able to read compressed files
directly, but i don't know if it is worth it.
Friendly,
Sven Luther
(Thanks to
The text was updated successfully, but these errors were encountered: