Powershell counterpart to quotes

What is the Powershell equivalent of the Perl qw () function? In v2, I can write my own with -split, but I assume that there is an exiting method that I simply cannot find in the documentation.

+3
source share
1 answer

We include this functionality in PowerShell Community Extensions , for example:

PS> quote-list hello world
hello
world
PS> ql hello world  # using alias
hello
world

If you do not want to install PSCX, the function is trivial:

Set-Alias ql Quote-List
function Quote-List {$args}
+3
source

Source: https://habr.com/ru/post/1721730/


All Articles