Skip to content

Bug: learn-ocaml master can raise lsof: illegal option character: Q #580

@erikmd

Description

@erikmd

Related user(s):

@AltGr, @erikmd

Related issue(s) or PR(s):

Related project scope(s):

other

Bug description:

Running learn-ocaml build --repo=demo-repository serve on my system leads to the following error:

Learnocaml v.0.16.0 running.
lsof: illegal option character: Q
lsof 4.93.2
 latest revision: https://github.com/lsof-org/lsof
 latest FAQ: https://github.com/lsof-org/lsof/blob/master/00FAQ
 latest (non-formatted) man page: https://github.com/lsof-org/lsof/blob/master/Lsof.8
 usage: [-?abhKlnNoOPRtUvVX] [+|-c c] [+|-d s] [+D D] [+|-E] [+|-e s] [+|-f[gG]]
 [-F [f]] [-g [s]] [-i [i]] [+|-L [l]] [+m [m]] [+|-M] [-o [o]] [-p s]
 [+|-r [t]] [-s [p:s]] [-S [t]] [-T [t]] [-u s] [+|-w] [-x [fl]] [--] [names]
Use the ``-h'' option to get more help information.
Updating app at ./www
demo2                        [OK]
demo                         [OK]
Learnocaml server v.0.16.0 starting on port 8080
lsof: illegal option character: Q
lsof 4.93.2
 latest revision: https://github.com/lsof-org/lsof
 latest FAQ: https://github.com/lsof-org/lsof/blob/master/00FAQ
 latest (non-formatted) man page: https://github.com/lsof-org/lsof/blob/master/Lsof.8
 usage: [-?abhKlnNoOPRtUvVX] [+|-c c] [+|-d s] [+D D] [+|-E] [+|-e s] [+|-f[gG]]
 [-F [f]] [-g [s]] [-i [i]] [+|-L [l]] [+m [m]] [+|-M] [-o [o]] [-p s]
 [+|-r [t]] [-s [p:s]] [-S [t]] [-T [t]] [-u s] [+|-w] [-x [fl]] [--] [names]
Use the ``-h'' option to get more help information.
Found the following teacher tokens:
…

To reproduce:

  1. Get the dev version of learn-ocaml (master)
  2. make && make opaminstall && learn-ocaml build --repo=demo-repository serve

Expected behavior:

No warning lsof: illegal option character: Q

learn-ocaml --version

No response

git describe --long --always --abbrev=40 --tags

v0.16.0-61-gfb300f6881526aacd50158593dd964f626167191

What OS do you use?

GNU/Linux

What OS version/distribution do you use?

Debian 11 (also repro on Ubuntu 22.04 LTS)

What browser(s) do you use with learn-ocaml?

Firefox

What browser(s) version did you used to reproduce the issue?

N/A

Screenshots (if need be):

No response

Additional context:

It appears Debian 11 (oldstable) and Ubuntu 22.04 LTS both have lsof 4.93.2,
while Debian 12 has lsof 4.95.0 which introduces this CLI feature:

https://github.com/lsof-org/lsof/releases/tag/4.95.0

	Add -Q option for adjusting exit status when failed to find a
	search item (#129)
	In the original code, lsof returned 1 when it failed to find a
	search item. With the new option, lsof returns 0 in the case.


	Document -Q option in manpage/00QUICKSTART, and adjust -h
	output by @dilinger (Andres Salomon) in #129.

As promised @AltGr, I'm working on a fix ASAP!

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions