Skip to content
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

Input from STDIN does not work with an alias group #52

Open
janw-me opened this issue Dec 24, 2020 · 3 comments
Open

Input from STDIN does not work with an alias group #52

janw-me opened this issue Dec 24, 2020 · 3 comments

Comments

@janw-me
Copy link
Member

janw-me commented Dec 24, 2020

cat cleanup_stuff.php | wp @site_a eval-file - works.
But it does not work if used with a alias group.
It only triggers on the first entry of the alias group.
eval-file alias

@janw-me
Copy link
Member Author

janw-me commented Dec 24, 2020

I also took alook at the output when adding the --debug flag. I'm willing to look into it but am uncertain where to start.

@janw-me
Copy link
Member Author

janw-me commented Dec 24, 2020

PS a dirty hack workaround I found out is misusing the regular eval command:

wp @blueprint eval "$(tail -n +2 cleanup.php )"

@schlessera
Copy link
Member

Oh, I assume STDIN is being read per site for the group, so after the first run, the empty STDIN is being read.

Not sure how we should go about for this, I'll have to do a bit of exploration here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants