Unexpected token '{' in expression or statement #17137
Replies: 3 comments
-
are you looking for expect powershell version? i write one
|
Beta Was this translation helpful? Give feedback.
-
Yse, I am searching solution like expect in linux. Dim WshShell is there a simple solution? i can't get https://www.powershellgallery.com/packages/Await/0.8 by internet, the link does not work.
|
Beta Was this translation helpful? Give feedback.
-
This doesn't look like an issue with pwsh itself, so I will convert this to a discussion for the time being. 🙂 |
Beta Was this translation helpful? Give feedback.
-
Prerequisites
Steps to reproduce
I am writing a scrip that auto login, i got a example in https://github.com/PowerShell/PowerShell/blob/7dc4587014bfa22919c933607bf564f0ba53db2e/test/powershell/Host/assets/Read-Host.Output.expect.
but there is something error just like below:
Line | "prompt: $" { send "input\r" ; exp_continue }
10 | Unexpected token '{' in expression or statement.
Expected behavior
this scrip should exit with 0
Actual behavior
Unexpected token '{' in expression or statement.
Error details
Unexpected token '{' in expression or statement.
Environment data
Visuals
Beta Was this translation helpful? Give feedback.
All reactions