You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I suppose I should have used iex "import module '.$($ins[2])' " to be consistent.
Is there another benefit to importing a module or dot sourcing a PS1 file that way though? Does it isolate errors in filenames better that way? I noticed when importing a .PS1 file I needed to preface my functions with script: our they weren't in scope. I'm guessing this is due to using invoke-expression though I haven't tried it w/o iex to confirm that.
The following code allows IMPORT to work with modules as well as .dot-sourced ps1 files.
slim.ps1 @ Line 197
The text was updated successfully, but these errors were encountered: