pb does not work in NetBSD #8
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I tried to use pb on NetBSD (on a SDF machine) and it fails with an option issue, probably because /bin/sh is not a bash or something like that.
Not quite sure how to fix that, I will take a look when I have time
SDF has their file structure set up in a weird way. /bin/sh isn't the path on their system. You could run
which sh
and plug that path into line 1 of pb to fix it there.I tried that, it also does not seem to work, i will take a look
I have no read idea what the differences between linux and netbsd usually are, probably some command that is missing
(this is very much a throwback to the why is this not working on Solaris issues from 10 years ago)
Ok, that is not related to bash, it works with the shell at /bin/sh as well
the issue is that getopt on NetBSD is another program than on Linux which is completely incompatible since it does not have all the options. I am able to run the script without arguments when I change the options and remove -n pb -o it works for plain filenames but it gives a few file not found errors
Not sure how you would make getopt use different options unless you check uname and adapt
Actually that does not even support long options on NetBSD, looks like this is pretty old