Putting this in quotes makes it fail in a strange way:
$ opam depext "core utop"
# Detecting depexts using flags: armv6l linux debian
# The following system packages are needed:
# - No
# - packages
# - found.
The following command needs to be run through "sudo":
apt-get install No packages found.
Allow ? [Y/n]
If I say yes, depext will actually run $ apt-get install No packages found.
Admittedly, this is an edge case. I encountered it by accidentally writing opam depext "$my_package_list" (with quotes) in a shell script.
What's interesting is that simply passing a nonexistent package name gives different behavior:
$ opam depext foobar
# Detecting depexts using flags: armv6l linux debian
[ERROR] No package named foobar found.
[ERROR] No package named foobar found.
# No extra OS packages requirements found.
# All required OS packages found.
Users can pass a list of packages to depext:
Putting this in quotes makes it fail in a strange way:
If I say yes, depext will actually run
$ apt-get install No packages found.
Admittedly, this is an edge case. I encountered it by accidentally writing
opam depext "$my_package_list"
(with quotes) in a shell script.What's interesting is that simply passing a nonexistent package name gives different behavior: