-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
yenv: accept variable from stdin #114
Comments
I think I'm not understanding correctly :) Isn't this That's really capturing stdout of echo into the variable. Readline.exe exists to read from the console and write to standard output, although note it's a direct console read, not a standard input read. A standard input read seemed redundant here, since it would just be reading from input and writing to output, like
|
Yeah, but this works only with Yori. I was talking about a tool that could work from any batch file. It doesn't have to be yenv, it could be a new tool |
Okay, I think I understand. I pushed a4a01f0 for this, although am still not happy; I think it should also support both a variable and value from stdin, but having done that, it could have a list of variables and values, and... |
Thanks a lot!
Like I said, it doesn't have to be |
Hi, Malcolm.
I looked a lot and I couldn't find a tool that accepts standard input and saves it to a variable. Something like this:
echo string | yenv var
with the result:
echo %var%
>string
This is very useful because currently you have to make a full for loop to do this.
What do you think?
The text was updated successfully, but these errors were encountered: