You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I used to test this against Busybox installed to a local directory, sandboxed via env -i. I know Busybox isn't exactly POSIX but it's pretty close, and keep the POSIX docs nearby when you're wondering about a particular flag or command. Anyway I can't think of a better way to get a near-POSIX environment set up. (Suggestions very welcome if someone has an idea here.)
It's been a while since I've done that and a few non-compatible things have snuck in. Busybox doesn't seem to have pr (even though it's POSIX), and there's a syntax error (unclosed }) somewhere in the file that Busybox's sh is choking on that dash is otherwise fine with.
So, either:
Come up with a different way to make a POSIX env for testing and remove mention of Busybox from the README;
or, Fix Busybox compatibility.
The text was updated successfully, but these errors were encountered:
this appears to work for me ( using nix / nix-shell ) nix-shell -p busybox --command "busybox sh -x ./ok.sh-0.3.0/ok.sh [...ect] "
( BusyBox v1.29.3 from nixpkgs-unstable )
&& || nix-shell -p curl -p coreutils -p busybox --command " ./ok.sh-0.3.0/ok.sh [...ect] "
in my case [...ect] = list_issues $repo
Anyway I can't think of a better way to get a near-POSIX environment set up. (Suggestions very welcome if someone has an idea here.)
cant say that i know exactly what near-POSIX env might or might not entail tbh !...
anyway your comments wrt better way to setup an env made me think of
booting up the 'core' from tinycorelinux ( uses busybox )
"toolkit" / distro in some vm like qemu
eg: u=http://tinycorelinux.net/9.x/x86/release/distribution_files; k=vmlinuz ; i=core.gz; [ -f "$k" ] || wget "$u/$k" ; [ -f "$i" ] || wget "$u/$i"; qemu-system-i386 -curses -kernel ./$k -initrd ./$i ;
and adding coreutils for pr dep tce-load -w coreutils.tcz .. its possible to extract the tcz/squashfs create cpio.gz and concatenate with core.gz :D
Thanks for the reply. Nix has been on my list of things to play with for a while. Your comment prompted me to give it a try locally. nix-shell is really slick. I'm going to keep playing around with this.
I used to test this against Busybox installed to a local directory, sandboxed via
env -i
. I know Busybox isn't exactly POSIX but it's pretty close, and keep the POSIX docs nearby when you're wondering about a particular flag or command. Anyway I can't think of a better way to get a near-POSIX environment set up. (Suggestions very welcome if someone has an idea here.)It's been a while since I've done that and a few non-compatible things have snuck in. Busybox doesn't seem to have
pr
(even though it's POSIX), and there's a syntax error (unclosed}
) somewhere in the file that Busybox'ssh
is choking on thatdash
is otherwise fine with.So, either:
The text was updated successfully, but these errors were encountered: