pb does not work in NetBSD #8

Open
opened 2023-02-20 18:45:27 +00:00 by alexlehm · 4 comments

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

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
Owner

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.

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.
Author

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)

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)
Author

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

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
Author

Actually that does not even support long options on NetBSD, looks like this is pretty old

Actually that does not even support long options on NetBSD, looks like this is pretty old
Sign in to join this conversation.
No Label
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: tomasino/pb#8
No description provided.