g1eng / giosh Goto Github PK
View Code? Open in Web Editor NEWa POSIX INCOMPLIENT shell, written in go
License: BSD 2-Clause "Simplified" License
a POSIX INCOMPLIENT shell, written in go
License: BSD 2-Clause "Simplified" License
Now giosh officially supports pipe, but a pipe with an unterminated line does not provide any errors and panics on the exexcution.
$ ./giosh
@G[1]> ls -l |
panic: runtime error: index out of range [0] with length 0
goroutine 1 [running]:
github.com/g1eng/giosh/shell.(*CommandLine).parseStatement(0xc000141cf8, 0x1, 0x6a1fa3)
/home/suzume/local/Go/giosh/shell/parse_statement.go:23 +0x313
github.com/g1eng/giosh/shell.(*CommandLine).Parse(0xc000141cf8, 0xc00018c000, 0x8)
/home/suzume/local/Go/giosh/shell/parse.go:9 +0x152
github.com/g1eng/giosh/shell.(*CommandLine).Run(0xc000141cf8, 0x0, 0x5)
/home/suzume/local/Go/giosh/shell/run.go:26 +0x2bc
github.com/g1eng/giosh/cmd.parseArgs(0xc00005e540, 0x0, 0x1)
/home/suzume/local/Go/giosh/cmd/parseargs.go:37 +0x625
github.com/urfave/cli/v2.(*App).RunContext(0xc000015380, 0x6f98f0, 0xc00001e060, 0xc000012220, 0x1, 0x1, 0x0, 0x0)
/home/suzume/go/pkg/mod/github.com/urfave/cli/[email protected]/app.go:322 +0x6fe
github.com/urfave/cli/v2.(*App).Run(...)
/home/suzume/go/pkg/mod/github.com/urfave/cli/[email protected]/app.go:224
github.com/g1eng/giosh/cmd.Cmd()
/home/suzume/local/Go/giosh/cmd/cmd.go:31 +0x2a8
main.main()
/home/suzume/local/Go/giosh/main.go:8 +0x25
This should be fixed.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.