top | item 41591585

(no title)

brazzledazzle | 1 year ago

Would you be able to provide an example? I'm not doubting your experience, just incredibly curious since I had the opposite experience.

discuss

order

dgan|1 year ago

Sure thing :

$env::Path (the semicolon? so Path is not quoted here? But when I assign a value it's quoted?)

Dir -r | %($_.Name.ToLower) ( what is this? statement dreamed by utterly deranged)

They took us for absolute fools

brazzledazzle|1 year ago

I mean you don't need to use the convenience aliases, or use even use it exactly that way. Here's it without any aliases:

Get-ChildItem -Recurse | ForEach-Object { $PSItem.Name.ToLower() }

This might be a better mix of both worlds:

gci -r | foreach { $PSItem.Name.ToLower() }