Comments (2)
That’s the right intuition! We don’t have sed, but we do have more basic stuff like cd, cp, rm, etc: https://docs.rs/xshell/0.1.17/xshell/#functions
Adding something like sed
is totally in scope for xshell. Although in this specific case, I’d say that probably writing usual Rust code withregex
would be ergonomic enough.
The bash is in quotes because, rather than providing a literal POSIX-compatible environment, we provide whatever is needed to get a similar feeling.
from xshell.
oh wow.... OK! :-)
then.. all good I guess.. thank you!
and.. cool! :-)
..and indeed.. rust regex makes more sense then sed
.
from xshell.
Related Issues (20)
- How to redirect stdout/stderr to files? HOT 1
- Allowing self.field in cmd! macro HOT 2
- `stdin` broken since release `0.2.3` HOT 7
- Fork command to background HOT 2
- `cmd!` panics when string contains backslash followed by a line break HOT 3
- Interiour mutability seems unnecessary HOT 1
- Remove all files inside a directory HOT 2
- xshell command fails to communicate with a running app HOT 5
- How to make `cmd` prompt the user HOT 6
- Add a `cmds!` that runs multiple HOT 1
- Nonexistent current directory results in confusing error message HOT 1
- Clarify in which sense the shell provides "independence of the host environment" HOT 2
- Returning Child with spawn HOT 1
- Return the current environment of the shell HOT 2
- Implement `Clone` for `Shell`?
- Failure on Windows when running `npm ...` HOT 1
- Feature Request: Add option to print the enviroment with the command HOT 2
- Bug: Multiple blank flags seem to cause errors with cmd! HOT 1
- Get exit code of commands with inherited stdout/stderr HOT 2
- Feature request: Add a way to *extend* an existing `Cmd` with syntax very similar to `cmd!`
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 xshell.