You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
Hi,
We are running Windows 7 with PowerShell 2.0 and I'm trying to create a few aliases and functions in the Microsoft.PowerShell_profile.ps1 files so that all new shells can pick up the new alias/commands. I have the following in the file:
function sv {
$command = "C:\Program Files (x86)\IBM\RationalSDLC\ClearCase\bin\cleartool.exe"
& "$command" startview $args[0]
}
#
function ev {
$command = "C:\Program Files (x86)\IBM\RationalSDLC\ClearCase\bin\cleartool.exe"
& "$command" endview $args[0]
}
The "ev" functions works every time, however the "sv" does not. I can type the command into the terminal (using a different function name foo or bar) and it works for that shell... I've tried to change it to pass an argument in: