I've got an initialisation script that sets a couple of variables for later use. The last line defines a "prompt" function, which I hoped would change my prompt, as an indication that the initialization had been done. The variables get set, so it's not running as a sub-process, but my prompt stays stubbornly at "PS ". What's going wrong?
Here's the script, with two versions of the function I've tried
$II_SYSTEM = "F:\Apps\Ingres92"
$env:PATH = "$II_SYSTEM\ingres\bin;$II_SYSTEM\ingres\utility;$env:PATH"
$env:LIB = "$II_SYSTEM\ingres\lib;$env:LIB"
$INCLUDE = "$II_SYSTEM\ingres\files;$INCLUDE"
function prompt{"PS $PWD IX>"}
function prompt{write-output ("PS $PWD IX>") -nonewline}
Thanks.