Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function inner
- {
- foreach( $arg in $args )
- {
- # do some stuff
- }
- }
- function outer
- {
- inner --flag $args
- }
- inner foo bar baz
- outer wibble wobble wubble
- inner --flag wibble wobble wubble
- inner --flag [string]::Join(" ", $args)
- function outer
- {
- invoke-expression "inner --flag $($args -join ' ')"
- }
Add Comment
Please, Sign In to add comment