-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
perl one-liners doing substitution with s|pattern|replacement| called from webpack.config.js apparently try to run "pattern" as a program #4949
Comments
So these commands get called from javascript code, right? Presumably through |
I'm running whatever webpack runs internally. I'm not sure if that's
node.exe or some wrapper.
John
…On Sun, May 12, 2024 at 2:44 AM Matthias Aßhauer ***@***.***> wrote:
So these commands get called from javascript code, right? Presumably
through nodejs? In that case where do you get that nodejs from and how
does it execute these commands? If it's a native Windows nodejs I suspect
that these get passed to cmd.exe (as opposed to any sort of POSIX-ish
shell) which does not follow POSIX shell quoting rules. I don't think there
is anything we can fix about that.
—
Reply to this email directly, view it on GitHub
<#4949 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAFMJ55XNF3JRRE5AW7QBWDZB4MVTAVCNFSM6AAAAABHSSPAFCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMBWGE2TGNJRG4>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
The webpack installation guide starts with starts with
So there's probably a This |
Good point. I installed via npm, and didn’t read the installation guide.
I was guessing something like that. My upstream request was rejected that
patched this. The patch wasn’t perfect.
Mac snob I guess. I have 2 old macs gathering dust.
John
…On Sun, May 12, 2024 at 7:11 AM Matthias Aßhauer ***@***.***> wrote:
The webpack installation guide starts with
<https://webpack.js.org/guides/installation/> starts with
Before we begin, make sure you have a fresh version of Node.js installed.
The current Long Term Support (LTS) release is an ideal starting point.
So there's probably a node involved somewhere along the line.
This WebPackShellPluginNext thing uses exec
<https://github.com/s00d/webpack-shell-plugin-next/blob/7b5c5861322d48c90cd824c4ae0028dd523f948f/src/index.ts#L142>
/spawn
<https://github.com/s00d/webpack-shell-plugin-next/blob/7b5c5861322d48c90cd824c4ae0028dd523f948f/src/index.ts#L149>
and execSync
<https://github.com/s00d/webpack-shell-plugin-next/blob/7b5c5861322d48c90cd824c4ae0028dd523f948f/src/index.ts#L126>
/spawnSync
<https://github.com/s00d/webpack-shell-plugin-next/blob/7b5c5861322d48c90cd824c4ae0028dd523f948f/src/index.ts#L132>
to run those scripts. At that point node seems to pass on your commands
to cmd.
—
Reply to this email directly, view it on GitHub
<#4949 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAFMJ57RXB2RJCR3LQVN773ZB5MABAVCNFSM6AAAAABHSSPAFCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMBWGIZDKOJTGI>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
This is not a problem on WSL2 or MacOS apparently. This is just a heads up, as I'd like to do development under Git Bash, and it has this problem, with it's version of perl or webpack. I haven't tested another perl version that I know of. Nor have I tested perl outside of webpack.
things that fail might be:
These are from X_ITE X3D Brower's webpack.config.js which is designed to run on macs. Note that even pattern alternation with | tries to run a program.
Again, this is not a show stopper, as I've moved development to WSL2, but WSL2 can't really use the Windows file system without upgrading the Linux kernel, which is at 5.15
Here's a typical webpack config example:
I hope this gets fixed...
The text was updated successfully, but these errors were encountered: