Concatenating a variable and a string literal without a space in PowerShell -
how can write variable console without space after it? there problems when try:
$myvariable = "some text" write-host "$myvariablenospaces"
i'd following output:
some textnospaces
another option , possibly more canonical way use curly braces delineate name:
$myvariable = "some text" write-host "${myvariable}nospaces"
this particular handy paths e.g. ${projectdir}bin\$config\images
. however, if there \
after variable name, enough powershell consider not part of variable name.
Comments
Post a Comment