prefixing of binaries that are already present on uss #438
Replies: 5 comments 2 replies
-
Thanks for bringing this discussion. This is definitely an issue. Here's a few other ideas:
|
Beta Was this translation helpful? Give feedback.
-
One of the reasons we exposed 'cp' was so that our tools would build, and I put in a hack to support cp of datasets by failing over to /bin/cp (I agree it's a hack). If we call it gcp, it means our tools won't build.
|
Beta Was this translation helpful? Give feedback.
-
This is actually something that is an issue in the zopen-* scripts themselves - we hardcode certain calls [like /bin/echo, /bin/find] to ensure that we use the basic system-supplied versions rather than rely on any updated packages or non-standard builtins. There is already options that either do not merge the new packages into the main system [so not on the path/libpath/.. etc] - users can still use the packages by sourcing from within the package directory as per pre-package-management We could:
Tbh, I would have the zos open tools first on the PATH and if there is a feature that a standard z/OS tool [like cp] can do that the z/OS Open Tools version can't, then that should be raised as an issue with the original still being available with a suitable prefix "/bin/cp" until such time as the port implements that feature [and being open source, anyone could implement the missing feature - hint, hint ;-) ] |
Beta Was this translation helpful? Give feedback.
-
We discussed this issue last week and came up with a few more ideas:
We add an extra option (or environment variable):
zopen could create aliases on the fly for
|
Beta Was this translation helpful? Give feedback.
-
why not add the IBM differences to the open-source and upstream them? |
Beta Was this translation helpful? Give feedback.
-
Hello,
there is a flaw with shadowing binaries.
In my opinion it may be a good practice to prefixing binaries,
if they are not 100% compatible with the IBM ones.
e.g.
coreutilsport/cp is shadowing the IBM cp. This leads to a lot of problems, because the IBM cp hast some features that are not (yet) implemented in the gnu version. Should we deploy the binary as
gcp
?makeport/make is shadowing the IBM make. Other OSes are already using
gmake
instead.Just to start the discussion
Mike
Beta Was this translation helpful? Give feedback.
All reactions