You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In PowerShell, it will occur errors because of ampersand;
PS C:\Windows\System32\WindowsPowerShell\v1.0> pwd
Path
----
C:\Windows\System32\WindowsPowerShell\v1.0
PS C:\Windows\System32\WindowsPowerShell\v1.0> ./powershell.exe start microsoft-edge:"https://www.google.com/url?sa=t&url=https%3A%2F%2Fgithub.com%2FMicrosoft%2FBashOnWindows%2Fissues&usg=AFQjCNHYJj1Y465rnV4VWzVcIVSF58cn9w"
At line:1 char:55
+ { start microsoft-edge:https://www.google.com/url?sa=t&url=https%3A%2 ...
+ ~
The ampersand (&) character is not allowed. The & operator is reserved for future use; wrap an ampersand in double quot
ation marks ("&") to pass it as part of a string.
At line:1 char:121
+ ... ttps%3A%2F%2Fgithub.com%2FMicrosoft%2FBashOnWindows%2Fissues&usg=AFQj ...
+ ~
The ampersand (&) character is not allowed. The & operator is reserved for future use; wrap an ampersand in double quot
ation marks ("&") to pass it as part of a string.
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : AmpersandNotAllowed
PS C:\Windows\System32\WindowsPowerShell\v1.0>
SUNJOONG-DESKTOP v1.0 # pwd
/mnt/c/Windows/System32/WindowsPowerShell/v1.0
SUNJOONG-DESKTOP v1.0 # ./powershell.exe { start microsoft-edge:"https://www.google.com/url?sa=t&url=https%3A%2F%2Fgithub.com%2FMicrosoft%2FBashOnWindows%2Fissues&usg=AFQjCNHYJj1Y465rnV4VWzVcIVSF58cn9w" }
At line:1 char:55
+ { start microsoft-edge:https://www.google.com/url?sa=t&url=https%3A%2 ...
+ ~
The ampersand (&) character is not allowed. The & operator is reserved for future use; wrap an ampersand in double quot
ation marks ("&") to pass it as part of a string.
At line:1 char:121
+ ... ttps%3A%2F%2Fgithub.com%2FMicrosoft%2FBashOnWindows%2Fissues&usg=AFQj ...
+ ~
The ampersand (&) character is not allowed. The & operator is reserved for future use; wrap an ampersand in double quot
ation marks ("&") to pass it as part of a string.
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : AmpersandNotAllowed
SUNJOONG-DESKTOP v1.0 #
Same command with {}, but failed only in WSL. How can fix it?
The text was updated successfully, but these errors were encountered:
ver
at a Windows Command Prompt)Microsoft Windows [Version 10.0.15063]
I tried to launch microsoft-edge with url having ampersand. I prepare a test url instead of my real url that's wanted to be launched.
In PowerShell, it will occur errors because of ampersand;
But, it can be solved by
{}
like this;I tried to this in WSL but failed.
Same command with
{}
, but failed only in WSL. How can fix it?The text was updated successfully, but these errors were encountered: