Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#413 quotations added for paths which include spaces #424

Merged
merged 1 commit into from
Dec 8, 2015
Merged

#413 quotations added for paths which include spaces #424

merged 1 commit into from
Dec 8, 2015

Conversation

prikkeldraad
Copy link
Contributor

No description provided.

goto :eof

:help
powershell -NoProfile -ExecutionPolicy Bypass -Command ^
"$psakeDir = ([array](dir %~dp0Vendor\packages\psake.*))[-1]; .$psakeDir\tools\psake.ps1 build.psake.ps1 -docs -ScriptPath $psakeDir\tools"
@SET cmd=$psakeDir = ([array](dir """%~dp0vendor\packages\psake.*"""))[-1]; ".$psakeDir\tools\psake.ps1 build.psake.ps1" -docs -ScriptPath "$psakeDir\tools"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm a little confused by the extra quotation marks around the argument to the dir command in this line (and the same on line 9). Are they necessary? Quick test seemed to work fine with just a single pair of quotes.

It's also not necessary to put the quotation marks around the PowerShell tokens such as $psakeDir, because they don't get expanded until after they're passed to a command, and spaces in those values don't matter. (But they also don't hurt anything, so I'm fine with that part either way.)

@nohwnd
Copy link
Member

nohwnd commented Dec 6, 2015

@dlwyatt Any more comments on this, can it be merged? Or you'd prefer if the extra quotes were removed?

@dlwyatt
Copy link
Member

dlwyatt commented Dec 7, 2015

Just want to understand why they're there. The code would be a bit easier to read without a bunch of extra punctuation if it's not necessary.

dlwyatt added a commit that referenced this pull request Dec 8, 2015
#413 quotations added for paths which include spaces
@dlwyatt dlwyatt merged commit 7113b4b into pester:master Dec 8, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants