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
Something strange happens when passing an unquoted asterisk as the value of an argument. Consider the below test runs and output below:
CoconaStarBug$ dotnet run -- set key-1 value-1
(key-1,value-1)
CoconaStarBug$ dotnet run -- set key-1 *
(key-1,CoconaStarBug.csproj)
As you can see in the second execution Console.Writeline() prints CoconaStarBug.csproj and not the asterisk as one would expect. If I place the * in double-quotes it works correctly. Why is that? Is it that * gets a listing of the files in the current directory and picks the first filename? Is it that Cocona doesn't consider special characters as strings?
The text was updated successfully, but these errors were encountered:
sduplooy
changed the title
Passing an unquoted asterisk from the command line as an rgument gets a filename
Passing an unquoted asterisk from the command line as an argument gets a filename
Mar 30, 2024
Version: Cocona 2.2.0
Terminal: iTerm2 with zsh
OS: MacOS Sonoma 14.4
Something strange happens when passing an unquoted asterisk as the value of an argument. Consider the below test runs and output below:
As you can see in the second execution
Console.Writeline()
printsCoconaStarBug.csproj
and not the asterisk as one would expect. If I place the * in double-quotes it works correctly. Why is that? Is it that * gets a listing of the files in the current directory and picks the first filename? Is it that Cocona doesn't consider special characters as strings?See the attached example. CoconaStarBug.zip
The text was updated successfully, but these errors were encountered: