sindresorhus/opn

on windows, can't opn a directory with an ampersand #77

TanninOne posted onGitHub

The following line escapes ampersands on windows. https://github.com/sindresorhus/opn/blob/b9f7e569f5a3d5d520047df3e9f10a42d52fd9d4/index.js#L36

This breaks opening local files and directories where the path contains ampersands.


I have the same problem.

posted by nogueiraantonio about 6 years ago

This also breaks requesting urls with querystrings. The ampersand is the delimeter between querystring parameter.

posted by dogeared about 6 years ago

@issuehunt has funded $30.00 to this issue.


posted by IssueHuntBot about 6 years ago

Can anyone provide reproduction steps? I tried both directories and urls and they all worked fine.

posted by stroncium about 6 years ago

@sindresorhus Checked them, but only was able to reproduce it if path contains space. But this issue says it works with all directories with &.

posted by stroncium about 6 years ago

@TanninOne Can you show us your full file path?

posted by baoti almost 6 years ago

@nogueiraantonio @dogeared Can you show us your full file path or url? Just like those file paths.

posted by baoti almost 6 years ago

@sindresorhus has rewarded $27.00 to @herberttn. See it on IssueHunt

  • :moneybag: Total deposit: $30.00
  • :tada: Repository reward(0%): $0.00
  • :wrench: Service fee(10%): $3.00
posted by issuehunt-app[bot] over 5 years ago

Fund this Issue

$30.00
Rewarded

Rewarded pull request

Recent activities

herberttn was rewarded by sindresorhus for sindresorhus/opn# 77
over 5 years ago
herberttn submitted an output to  sindresorhus/ opn# 77
over 5 years ago