Comments (10)
What version of ishell are you using ?
from ishell.
The behaviour I'm getting is different. Yes, there is an error message but the application is not getting terminated.
❯ go run example/main.go
Sample Interactive Shell
>>> привет
Error: Unknown rune: 1087
>>> |
from ishell.
This one: fb8c158
from ishell.
Oh, that's awesome! I will rebase to this branch and check! Thank you!
from ishell.
There are differences between v1 and v2 (current master). You will have to do couple of refactors to make your app compatible.
from ishell.
You can re-open this if the issue still exists.
from ishell.
Also, you can put the characters in quotes as a workaround.
❯ go run example/main.go
Sample Interactive Shell
>>> greet "привет"
Hello привет
>>>
from ishell.
Hello! Is there any plan to fix this? I can do this if it doesn't require a lot of refactoring and won't break something.
While commands can be latin-only it is quite common to use unicode in filenames or command arguments.
from ishell.
@abiosoft what do you think about providing custom splitter in config (defaulting to current shlex.Split
)?
I can make a PR. Seems like the least invasive option.
from ishell.
go-shlex caused it:
cmd := "D:\\codes\\测试\\aaaa.exe asdasd"
fmt.Println(shlex.Split((cmd)))
from ishell.
Related Issues (20)
- support multiline for unclosed quotes
- Clear screen not working? HOT 1
- Support to deal with ctrl-z HOT 1
- Extraneous space for multiline args
- Run command automatically on startup
- No release version for the latest code
- Expose ReadlineWithDefault HOT 1
- context
- Export lifecycle
- ishell example requires package main as the first line
- QUESTION - How to print prompt back after getting async message HOT 3
- Subshell or previous context save HOT 1
- QUESTION - SSH Channel Print Content disorder
- Not friendly to non ascii characters HOT 1
- Keyboard interrupt on MultiChoice abruptly exits the shell HOT 2
- Example of multiple level subcommands HOT 1
- do not support auto logout ?
- Support for multi-lines based on opening/closing brakcets/braces
- Interrupt handler is not invoked when in ReadLine
- Running under Windows, ishell prints EOF and exits HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ishell.