Hacker News new | ask | show | jobs
by jrapdx3 3691 days ago
Looks interesting but did anyone get the demo to work?

Click on the "live demo" link, quite a long delay (few minutes), finally terminal-like display appears with "$" prompt.

However entering usual unix commands, ls, cd, etc., gives error: "Error while executing /usr/bin/ls: TypeError: get length method called on incompatible Object", or "/usr/bin/cd: command not found".

Running with FF Nightly. Don't know if it's me, FF, or the app.

What am I missing?

2 comments

First, (as silly as it is), 'cd' is not yet implemented, as that is a shell intrinsic.

Second, Firefox stable (46) is currently supported, but something has changed in the nightly that breaks us. It should be simple to track down, but in the meantime using almost anything other than FF nightly should work! (Safari, Gnome Web, Chrome{,ium}, IE Edge).

ls /usr/bin gives me:

  cp
  cat
  cpu-intensive-program
  curl
  dot
  echo
  exec
  fork_test
  go-bench
  grep
  head
  hello
  hello-socket
  http-example
  lat_syscall
  ls
  mkdir
  nice
  node
  pipeline-example
  priority-test
  rm
  rmdir
  sh
  sha1sum
  socket-example
  sort
  stat
  tail
  tee
  touch
  wc
  xargs
Doesn't seem to be cd, but ls does work. Chromium on Arch.
> Doesn't seem to be cd

That's expected:

    $ lsb_release -i
    Distributor ID: Gentoo
    $ ls {,/usr}/bin/cd
    ls: cannot access /bin/cd: No such file or directory
    ls: cannot access /usr/bin/cd: No such file or directory
    $ type cd
    cd is a shell builtin
If it isn't working in this javascript project, maybe it is only faking the Bourne shell (badly)?