Subject: | |
From: | |
Reply To: | |
Date: | Fri, 7 Oct 2005 16:37:37 -0400 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
James writes:
> :HELP SH
>> User-defined command:
>>
>> SH
>> XEQ SH.HPBIN.SYS
No, it should invoke with -L. Mine is:
(MANAGER.SYS)# help sh
User-defined command:
SH
ANYPARM info=-L
# version A.01.00
#
# This UDC invokes the POSIX .2 shell with the -L option by default.
# -L causes the shell to read the environment initialization files.
# The shell uses the file defined by the HISTFILE variable as the
# location of the history file. /etc/profile defines HISTFILE to
# be your HOME group, or your logon group if you lack a home group.
#
continue
xeq sh.hpbin.sys "!info"
(MANAGER.SYS)#
So I don't know where you got the one without the -L (?)
Also, HOME may not exist outside the shell... unless you save it in the shell:
> (MANAGER.SYS)# showvar HOME
> ^
> Variable not found in variable table. (CIERR 8106)
> (MANAGER.SYS)# sh
> ########################################################################
>
> MPE/iX Shell and Utilities (A.50.02)
> COPYRIGHT (c) Hewlett-Packard Company 1992, All Rights Reserved.
>
> ########################################################################
>
>
> shell/iX> exit
> (MANAGER.SYS)# sh
> ########################################################################
>
> MPE/iX Shell and Utilities (A.50.02)
> COPYRIGHT (c) Hewlett-Packard Company 1992, All Rights Reserved.
>
> ########################################################################
>
>
> shell/iX> echo $HOME
> /SYS/MANAGER
> shell/iX> exit
> (MANAGER.SYS)# showvar HOME
> ^
> Variable not found in variable table. (CIERR 8106)
> (MANAGER.SYS)#
Here we save the value:
> (MANAGER.SYS)# setvar home "foo"
> (MANAGER.SYS)# sh
> ########################################################################
>
> MPE/iX Shell and Utilities (A.50.02)
> COPYRIGHT (c) Hewlett-Packard Company 1992, All Rights Reserved.
>
> ########################################################################
>
>
> shell/iX> echo $HOME
> foo
> shell/iX> exit
> (MANAGER.SYS)# showvar foo
> ^
> Variable not found in variable table. (CIERR 8106)
> (MANAGER.SYS)# showvar home
> HOME = foo
> (MANAGER.SYS)#
Jeff
* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
|
|
|