News for hackers. Stuff that matters.
Re:Show HN: Terminal, a sandboxed command-line interface for... by goerz on Saturday January 06, 2018 @03:56PM (#16087409)
Very nice so far! Could this run an actual shell (bash), with support for a .bashrc (aliases!) and readline?

Could there be compatiblity wrappers for rsync/scp, falling back to curl?

I'm also not that into green on black. Any plans for themes?

Re:Show HN: Terminal, a sandboxed command-line interface for... by Spooky23 on Saturday January 06, 2018 @04:20PM (#16087522)
Check out pythonista. It can do many of the things you are talking about, except in Python!
Re:Show HN: Terminal, a sandboxed command-line interface for... by goerz on Saturday January 06, 2018 @04:39PM (#16087612)
Yeah, my point exactly! If Pythonista can be on the app store, then why not a full shell?
Re:Show HN: Terminal, a sandboxed command-line interface for... by glhaynes on Saturday January 06, 2018 @04:45PM (#16087640)
You can't fork() in App Store apps. Which is why all of the commands on the linked Terminal app are built-ins. So a bash-like of sorts could be made to work, but it would be very different and quite limited.
Re:Show HN: Terminal, a sandboxed command-line interface for... by brians on Saturday January 06, 2018 @06:39PM (#16088129)
You can’t fork a kernel thread. The hard part, and the value, of such an app would be a userspace fork() to a simulated thread.
Re:Show HN: Terminal, a sandboxed command-line interface for... by glhaynes on Saturday January 06, 2018 @11:25PM (#16089152)
I'm not sure what you mean - what's the relevance of a kernel thread (or threads in general) here?
Re:Show HN: Terminal, a sandboxed command-line interface for... by Gaelan on Saturday January 06, 2018 @04:42PM (#16087626)
Curl exists, so you could run bash if you can figure out some way to give it an executable bit (chmod doesn't exist), unless iOS refuses to run executables at all unless they're signed?
Re:Show HN: Terminal, a sandboxed command-line interface for... by 0x0 on Saturday January 06, 2018 @04:58PM (#16087710)
iOS refuses to run executable at all if unsigned. In fact, iOS restricts regular apps from calling fork() and exec() so you won't even have a chance to try.
Re:Show HN: Terminal, a sandboxed command-line interface for... by seba_dos1 on Saturday January 06, 2018 @04:06PM (#16087455)
That would probably get removed from the walled garden.
Re:Show HN: Terminal, a sandboxed command-line interface for... by goerz on Saturday January 06, 2018 @04:14PM (#16087491)
I thought Apple significantly relaxed the rules on running external code inside an app. Pythonista is pretty powerful these days. So I'd be hopeful a full shell with scripting support could make it into the store (still sandboxed, of course)