Hacker News new | ask | show | jobs
by timlyo 3691 days ago
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.
1 comments

> 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)?