Tabbing while starting command with '(' causes exceptions

22 views
Skip to first unread message

Hideki Ikeda

unread,
Apr 10, 2015, 8:03:27 PM4/10/15
to pash-p...@googlegroups.com
NOTE to admin: If this is not the place to post bugs, please delete this post

While in Pash console, type '(Get-Hos' and then hit the <tab> key for completion (intention was to call '(Get-Host).CurrentCulture' for example)

Result:
System.ArgumentException: parsing "^(Get-Hos.*$" - Not enough )'s.                                                      
Parameter name: ^(Get-Hos.*$                                                                                            
  at System.Text.RegularExpressions.Syntax.Parser.ParseGroup (System.Text.RegularExpressions.Syntax.Group group, RegexOptions options, System.Text.RegularExpressions.Syntax.Assertion assertion) [0x00000] in <filename unknown>:0
  at System.Text.RegularExpressions.Syntax.Parser.ParseGroupingConstruct (System.Text.RegularExpressions.RegexOptions& options) [0x00000] in <filename unknown>:0
  at System.Text.RegularExpressions.Syntax.Parser.ParseGroup (System.Text.RegularExpressions.Syntax.Group group, RegexOptions options, System.Text.RegularExpressions.Syntax.Assertion assertion) [0x00000] in <filename unknown>:0
  at System.Text.RegularExpressions.Syntax.Parser.ParseRegularExpression (System.String pattern, RegexOptions options) [0x00000] in <filename unknown>:0
  at System.Text.RegularExpressions.Regex.CreateMachineFactory (System.String pattern, RegexOptions options) [0x00000] in <filename unknown>:0
  at System.Text.RegularExpressions.Regex.InitNewRegex () [0x00000] in <filename unknown>:0
  at System.Text.RegularExpressions.Regex.Init () [0x00000] in <filename unknown>:0
  at System.Text.RegularExpressions.Regex..ctor (System.String pattern, RegexOptions options) [0x00000] in <filename unknown>:0
  at System.Management.Automation.WildcardPattern.Clear () [0x00000] in <filename unknown>:0
[ERROR] FATAL UNHANDLED EXCEPTION: System.ArgumentException: parsing "^(Get-Hos.*$" - Not enough )'
s.
Parameter name: ^(Get-Hos.*$
  at
System.Text.RegularExpressions.Syntax.Parser.ParseGroup (System.Text.RegularExpressions.Syntax.Group group, RegexOptions options, System.Text.RegularExpressions.Syntax.Assertion assertion) [0x00000] in <filename unknown>:0
  at
System.Text.RegularExpressions.Syntax.Parser.ParseGroupingConstruct (System.Text.RegularExpressions.RegexOptions& options) [0x00000] in <filename unknown>:0
  at
System.Text.RegularExpressions.Syntax.Parser.ParseGroup (System.Text.RegularExpressions.Syntax.Group group, RegexOptions options, System.Text.RegularExpressions.Syntax.Assertion assertion) [0x00000] in <filename unknown>:0
  at
System.Text.RegularExpressions.Syntax.Parser.ParseRegularExpression (System.String pattern, RegexOptions options) [0x00000] in <filename unknown>:0
  at
System.Text.RegularExpressions.Regex.CreateMachineFactory (System.String pattern, RegexOptions options) [0x00000] in <filename unknown>:0
  at
System.Text.RegularExpressions.Regex.InitNewRegex () [0x00000] in <filename unknown>:0
  at
System.Text.RegularExpressions.Regex.Init () [0x00000] in <filename unknown>:0
  at
System.Text.RegularExpressions.Regex..ctor (System.String pattern, RegexOptions options) [0x00000] in <filename unknown>:0
  at
System.Management.Automation.WildcardPattern.Clear () [0x00000] in <filename unknown>:0



Target platform: Ubuntu 14.04.1 (x86_64)

I'd like to help debug this, but I do not have time to look until next week...

Jay Bazuzi

unread,
Apr 10, 2015, 8:05:00 PM4/10/15
to pash-p...@googlegroups.com
Thanks for the bug report!

It's fine that you posted this here, so I went ahead and allowed the message through.

A good place to track issues is on GitHub: https://github.com/Pash-Project/Pash/issues

-J

--
You received this message because you are subscribed to the Google Groups "Pash Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pash-project...@googlegroups.com.
Visit this group at http://groups.google.com/group/pash-project.

Reply all
Reply to author
Forward
0 new messages