Creating a terminal in Alpine Linux exits immediately
gmile opened this issue · comments
Weird, I haven't seen that one before. Thanks for the report. Do you have a reproduction that I could take a look at?
I have a reproduction — I just tried in an alpine container, and the terminals immediately close as soon as they're created. Interesting! Maybe it's a quirk of busybox.
![image](https://private-user-images.githubusercontent.com/7550632/284618731-ccce1f11-1518-4b20-8696-26f543793346.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTc0OTYyNjAsIm5iZiI6MTcxNzQ5NTk2MCwicGF0aCI6Ii83NTUwNjMyLzI4NDYxODczMS1jY2NlMWYxMS0xNTE4LTRiMjAtODY5Ni0yNmY1NDM3OTMzNDYucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDYwNCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA2MDRUMTAxMjQwWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9ZjRjNTgxN2I4N2MxYWJmZDBmNTgyYjgxMTI5NGE1OGVhN2EwYTE0YmRjMmNlYzQ0OGY4NzE2ZDdmY2ZkNzZiMSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.Ko20jBoSXRYN_52ft5013LHiB2GuirqcSNXaeaStR5E)
docker run -it --rm alpine:latest
apk add curl
curl https://sshx.io/get | sh
sshx
The "subsystem status" error you're seeing is coming from a content script, so it probably doesn't have anything to do with sshx. I can't reproduce that part.
Found the issue, it's because my default shell auto-detection isn't a particularly advanced heuristic. On most shells $SHELL
is set, but otherwise I default to /bin/bash
. I guess we could first check to see if /bin/bash
is present and use /bin/sh
otherwise.