Coder Social home page Coder Social logo

Feature request about a-shell HOT 15 OPEN

holzschu avatar holzschu commented on May 30, 2024 7
Feature request

from a-shell.

Comments (15)

ifuchs avatar ifuchs commented on May 30, 2024

Ditto for Wget command.

from a-shell.

holzschu avatar holzschu commented on May 30, 2024

Related to wget, there is curl, which was much easier to port and has the same functionalities. But I'll add it to the TODO list.

from a-shell.

OldUncleMe avatar OldUncleMe commented on May 30, 2024

Curious if wget was ever added? I'm locked out of most directories, too, and most commands, even those listed with help -l, are "operation not permitted". No su or sudo, and not sure how to proceed!

otoh, looks pretty amazing -> once I can crack the egg a little bit and access commands and some of the environment.

from a-shell.

holzschu avatar holzschu commented on May 30, 2024

These are different issues. wget is covered by the GPL, and the FSF official position is that the GPL is incompatible with AppStore distribution. The only solution would be to distribute a WebAssembly version of wget. I tried, but it uses setjmp()/longjmp(), which makes it incompatible with WebAssembly at the moment.

Short version: wget is going to take a long time. curl provides a similar functionality.

All commands saying "operation not permitted" sounds like a major issue on the other hand, and I'd like to solve it quickly. There is a possibility that you started in the "/" directory, instead of "~/Documents". What does "pwd" say? What is the effect of "cd"?

from a-shell.

OldUncleMe avatar OldUncleMe commented on May 30, 2024

FFE77-CA0-239-A-43-D6-9-E3-D-E0449-A017814

A small screen-capture of a few commands. Copy+Paste from the terminal window was a no-go, and there does not seem to be an image posting facility here. Direct link to image,
https://postimg.cc/TpP6Cjpf

I'd be glad to test more. I'll be in & out today. ([edit]Looks like the link code provided the image, good)

from a-shell.

holzschu avatar holzschu commented on May 30, 2024

Thanks for the screen capture, it really helps. I'm not sure at all what is happening (I reinstalled the app on one of my devices to be sure, and I had the normal behaviour).

cd works, but cd is an internal command (so is help). The behaviour of pwd is even stranger, because it was "command not found" at first, and then it worked.

I have a few more questions:

  • is that a-Shell or a-Shell mini?
  • is that the AppStore version or the TestFlight version?
  • are you running a jailbroken device? (no judgment from me, I had one a while ago, but it could be a cause)
  • which version of iOS are you running?

None of these should have an impact, but then again what happens to you should not happen, so... Anything that helps me in narrowing it down and reproducing it will help me in fixing it.

Right now, my most likely explanation is that the install was somehow corrupted, and the signature of some commands don't match the proper signature. If that was the case, un-installing then re-installing could help.

from a-shell.

holzschu avatar holzschu commented on May 30, 2024

Another possible issue: are you using a specific keyboard? If the keyboard has inserted invisible characters in the string, that could explain the "command not found".

from a-shell.

OldUncleMe avatar OldUncleMe commented on May 30, 2024

I'll put the info up today, in a while. I can run some commands too, see what is working.
From watching, it looks like some commands load...slowly before they can run. I'll re-install, too, if it's not correct again. The mode is as though I were a highly restricted user, FWIW.

Eq:
Ipad Pro (4th gen), OS: iPadOS 14.6 - all Apple, not j/b I may try that dome day on older gear
The keyboard is the built in (on screen) English(US) / default, though a few others are installed (*I like UniChar a lot ✔︎)

I was using a-shell full. I do have a/s mini installed, as well as ish, but they should have separate lib's and I had hard-rebooted before the cap you saw.

Great explanation about wget -- curl should be an excellent alternative, I'll learn it!

from a-shell.

OldUncleMe avatar OldUncleMe commented on May 30, 2024

App store version of a-shell, I don't have TestFlight installed- haven't ever tried it yet.

from a-shell.

holzschu avatar holzschu commented on May 30, 2024

I still have no ideas what's going on. I'll try it in the simulator with your settings, see if I can reproduce the bug.

If you want to test: history, help, clear, credits, pickFolder, config, jsc, play, view, newWindow, exit, showmarks, alias, cd, unalias, pbcopy and pbpaste are internal commands (they don't require loading an external library), so they should load immediately (of course, "exit" closes the window, so use with caution).
file, tree, ctags, jsi are commands using an external file and an internal command, so they should also load without problem.

The other commands require loading an external file and checking the permission with iOS, an operation that is supposed to be instantaneous but could be taking time. If the command says "command not found" several time, then works (as it does with pwd in your screenshot), then that's where I'm going to investigate.

from a-shell.

OldUncleMe avatar OldUncleMe commented on May 30, 2024

from a-shell.

holzschu avatar holzschu commented on May 30, 2024

Hi, I suspect github has not taken your full contribution. The only thing I can see is "Here's a start".

from a-shell.

OldUncleMe avatar OldUncleMe commented on May 30, 2024

A086-D787-E236-43-DE-B1-EA-9-EF0-B4680-EBA

Iwill uninstall a-shell mini and a-shell, then reinstall just a-shell. If there is a problem with library confusion this might clear it up.

from a-shell.

OldUncleMe avatar OldUncleMe commented on May 30, 2024

2021.07.12:09:47 - after removing a-shell, a-shell mini and ish apps, then hard rebooting iPad, then re-installing a-shell app. I will try anumber of other commands, screenshot and post.
9-F09259-D-35-D1-4536-9789-93-F1-F19-FC018

from a-shell.

holzschu avatar holzschu commented on May 30, 2024

Hi,
Thanks for the tests and the images. The latest image corresponds to the expected behavior: iOS has very restrictive user permissions. / can be read, but nothing under / can (but /System/Library can...).

Inside ~, you can read everything, but only create files and directories inside ~/Library, ~/Documents and ~/tmp. "cd" with no arguments takes you to ~/Documents.

I still have no idea why it wasn't working the first time.

from a-shell.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.