Created
November 1, 2018 12:16
-
-
Save alfredmyers/6cca18d09d7f8578a211f2f6b212f275 to your computer and use it in GitHub Desktop.
Enumerates an prints argument values out to the console
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
foreach (var arg in args) | |
{ | |
Console.WriteLine(arg); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Run the program above in bash, cmd and Powershell to see how bash does wild card expansion before feeding the arguments into your program
dotnet run -- *
Powershell, cmd.exe:
Bash: