由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Unix版 - login shell and normal shell?
相关主题
.cshrc?.login?.profile?Change shell to tcsh?
how to change login shell?how to redirect error output under unix
questionwhat are the differnces between unix shell?
Classpath setting questionRe: [转载] how to get the return value of a command by shell?
[转载] About the historyXEmacs Shell 问题
如何单步执行shell?如何实现下列功能?
which shell is best?为什么time命令无法重定向?
shell programming问题:如何同时run多个作业AIX shell configuration
相关话题的讨论汇总
话题: shell话题: login话题: normal话题: tcsh话题: skyocean
进入Unix版参与讨论
1 (共1页)
s******n
发帖数: 15
1
what are the differences between them? these really diffuse
me for a long time, thanks!
m*******m
发帖数: 182
2
login shell is the shell a user uses when she logs in as
specified in passwd file. normal shell can be started any
time.
~{!>~} ~{TZ~} skyocean (skyocean~~working) ~{5D4sWwVPLa5=~}:
~{!?~}
w*****n
发帖数: 94
3
And, they read different rc files when startup.
Refer to the manual.

【在 m*******m 的大作中提到】
: login shell is the shell a user uses when she logs in as
: specified in passwd file. normal shell can be started any
: time.
: ~{!>~} ~{TZ~} skyocean (skyocean~~working) ~{5D4sWwVPLa5=~}:
: ~{!?~}

c*****t
发帖数: 1879
4
login shell and the normal shell are almost the same.
On most systems, they use the same command executable.
If sh/csh/tcsh were run as the login shell, they would
modify their process name in memory to -sh/-csh/-tcsh.

【在 s******n 的大作中提到】
: what are the differences between them? these really diffuse
: me for a long time, thanks!

w*****n
发帖数: 94
5
The '-' of the process names of shells are not added by
themselves. They are given by the process who invoked
shells, indicating that they should act as login shell.
This effect can also be enabled by command-line options,
-login for bash, or -l for tcsh.

【在 c*****t 的大作中提到】
: login shell and the normal shell are almost the same.
: On most systems, they use the same command executable.
: If sh/csh/tcsh were run as the login shell, they would
: modify their process name in memory to -sh/-csh/-tcsh.

1 (共1页)
进入Unix版参与讨论
相关主题
AIX shell configuration[转载] About the history
如何在emacs的shell里调用历史命令?如何单步执行shell?
怎么从script中把环境变量传回到当前shell中? (转载)which shell is best?
No shell ?shell programming问题:如何同时run多个作业
.cshrc?.login?.profile?Change shell to tcsh?
how to change login shell?how to redirect error output under unix
questionwhat are the differnces between unix shell?
Classpath setting questionRe: [转载] how to get the return value of a command by shell?
相关话题的讨论汇总
话题: shell话题: login话题: normal话题: tcsh话题: skyocean