chromium / axiom

Axiom Project
https://chromium.github.io/axiom/web_shell/
Apache License 2.0
53 stars 26 forks source link

Command line parsing is broken at least for `cd` #119

Closed ussuri closed 9 years ago

ussuri commented 9 years ago

E.g.:

jsfs:/> cd exe
{
  "message": "Invalid sigil for \"_\", expected \"@\": \"$\"",
  "stack": "Error\n    at Error.AxiomError (https://localhost:8080/axiom3/tmp/samples
/web_shell/js/axiom_base.amd.concat.js:404:18)\n    at Error.AxiomError.init (https:/
/localhost:8080/axiom3/tmp/samples/web_shell/js/axiom_base.amd.concat.js:457:15)\n   
 at Error.AxiomError.Invalid [as ctor] (https://localhost:8080/axiom3/tmp/samples/web
_shell/js/axiom_base.amd.concat.js:546:52)\n    at new Arguments.Record (https://loca
lhost:8080/axiom3/tmp/samples/web_shell/js/axiom_base.amd.concat.js:887:15)\n    at n
ew Arguments (https://localhost:8080/axiom3/tmp/samples/web_shell/js/axiom_base.amd.c
oncat.js:801:18)\n    at Parse.parseArgs (https://localhost:8080/axiom3/tmp/samples/w
eb_shell/js/wash.amd.concat.js:2448:18)\n    at Wash.parseArgv (https://localhost:808
0/axiom3/tmp/samples/web_shell/js/wash.amd.concat.js:2218:20)\n    at null.<anonymous
> (https://localhost:8080/axiom3/tmp/samples/web_shell/js/wash.amd.concat.js:2174:26)
",
  "errorName": "Invalid",
  "errorValue": {
    "type": "Invalid sigil for \"_\", expected \"@\"",
    "value": "$"
  }
}