Comments (4)
Because the lines()
method will keep reading until EOF, and at this time the life cycle of the process has ended, which also represents the end of the life cycle of the Command
instance, so it is not necessary to set the variable to false again after the lines end
from kommand.
I meant a bit different thing: lines
call readLine
, which sets currentReadLine
to false after the readUTF8Line
. This causes currentReadLine
being false
while lines
is reading the lines. (too many "lines" word, sorry)
I am not sure if there is any problem with currentReadLine
set to false, but still
Thanks for your attention
from kommand.
I'll keep thinking about it
from kommand.
After fixing other bugs, this problem will no longer exist
from kommand.
Related Issues (16)
- Ktor IO dependency should be an `api` dependency HOT 10
- Thank you!!
- Pipe stdout of first command to a second command HOT 2
- mingwX64 not wrking HOT 3
- Remove Main.kt files HOT 1
- Get exit code AND output at the same time HOT 5
- Unable to add as dependency? HOT 4
- FR: Add timeout option HOT 3
- lines() doesn't properly handle stream HOT 3
- FR: Support LInuxArm(64) target? HOT 4
- Piped I/O example leaves process as zombie HOT 3
- cwd Doesn't seem to work (at least on Linux) HOT 3
- Q: LICENSE HOT 1
- Add support for varargs command arguments HOT 1
- Error when adding dependency
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 kommand.