Page 1 of 1

Auto expand on paste sensitive to spaces

Posted: Mon Sep 21, 2020 9:01 pm
by owinsloe
Product: PowerShell Studio 2020 (64 Bit)
Build: v5.7.181
OS: Windows 10 Pro (64 Bit)
Build: v10.0.19041.0

The following where-object will not expand during a paste, due to the space between ? and the left open brace
foreach ($Line in @($Stats.$Type.$ServerPrefix.$Server) | ? { $_ })
however...
foreach ($Line in @($Stats.$Type.$ServerPrefix.$Server) | ?{ $_ })
does expand to
foreach ($Line in @($Stats.$Type.$ServerPrefix.$Server) | Where-Object{ $_ })

Re: Auto expand on paste sensitive to spaces

Posted: Thu Sep 24, 2020 7:42 am
by brittneyr
We are currently look into this and will get back to you soon.

Re: Auto expand on paste sensitive to spaces

Posted: Wed Sep 30, 2020 3:01 pm
by brittneyr
I've been able to reproduce this and have filed a bug report with the development team. When I have more information, I will update you.

Re: Auto expand on paste sensitive to spaces

Posted: Fri Oct 23, 2020 8:24 am
by brittneyr
Please try service build 5.7.182 and let me know if this issue has been resolved.