Comments (3)
You might be right, but it was added for a reason, and it wouldn't be worth changing it now, in case it has some unforseen downsides.
from open.
To clarify, I don't mean that the argument could be removed altogether -- that would cause start
to interpret the filename as the name of a new console window (which is, as I understand it, why it had to be added); I mean that using a string containing ""
seems to escape the double-quotes and wrap them in another pair of quotes like start "\"\""
, whereas the intention of calling start ""
seems to be effected by using an empty string as the argument instead.
Although you're right -- it's working now and I don't know for sure that this obvservation holds for all versions of Node and all versions of Windows; without some way to test it automatically it's hard to say for sure that the behavior I'm seeing is consistent everywhere.
from open.
Actually did think of a potential automated test just now -- we could open a .bat
script that takes some action to indicate success, then wait/watch for that action with an appropriate timeout (might need a little tuning) to be sure the batch script ran. Wouldn't necessarily uncover all possible issues with opening files, but at any rate would demonstrate that start
is not misinterpreting the filename as a console window name and failing to run the file.
from open.
Related Issues (20)
- Release v9.1.1 (Nodejs v20 fix) HOT 2
- Library doesn't seem to work when importing dynamically? HOT 2
- How to open a link with open browers' F12 developer tools?
- Argument list quotes aren't escaped for PowerShell
- ``wait: true`` doesn't work using Firefox
- Can't open `mailto:[email protected]` in browser
- Cannot find name 'ChildProcess' HOT 1
- OS command injection on windows when opening urls HOT 1
- v9 fails within VSCode extension as import.meta.url is null HOT 2
- Browser tab opens, but does not focus or come to front
- Unable to open url in incognito when MSEdge is the default browser HOT 2
- its using firefox when firefox is not even installed
- default browser not found (linux) HOT 5
- UnhandledRejection: The "path" argument must be of type string or an instance of URL. Received undefined HOT 5
- darwin arguments need to come before url
- Nothing is opened under Plasma (KDE) 6
- Support passing string data and a type to open in the default application. HOT 2
- [ERR_REQUIRE_ESM]: require() of ES Module HOT 2
- Older Node 18 versions do not provide a `constants` export HOT 1
- npm open could not work
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 open.