Other shells
Shells outside the Bourne family, above all PowerShell and its object pipeline. Interviewers ask because cross-platform or Windows-adjacent work is where text-stream habits stop being enough.
part ofCommand-line shellsoverview, primer and where to startread it →on this pageshowhide
explore
- PowerShell32 questions
- Cmdlets and Object Pipeline6 questions
- Scripting Language Fundamentals6 questions
- Modules and PSGallery4 questions
- Error Handling5 questions
- Remoting and Sessions6 questions
- Cross-Platform and DSC5 questions
questions
page 2 of 2Your team's PowerShell automation is a dozen .ps1 files pasted around in chat. How would you turn that into modules the team installs, and what do you have to decide about hosting and versioning?
basics
~20 sPackage the scripts as modules with manifests, then publish them to a repository the team registers once — a private NuGet feed or a file share — so installs and updates go through Install-Module. The decisions are hosting, trust policy, versioning contract, and who publishes.
Your team maintains a large shared PowerShell codebase. Would you mandate `Set-StrictMode` together with typed, validated parameters across it, and what does that discipline cost?
basics
~20 sUsually yes for shared code: PowerShell is permissive by default, so typos in variable and property names return $null silently and fail far from the cause. Strict mode and validation attributes convert those into immediate errors, at the cost of rejecting some dynamic idioms and of version-sensitive behaviour.
showing 31–32 of 32