由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Unix版 - [转载] About the history
相关主题
AIX shell configuration如何改变CLASSPATH?
how to change login shell?login shell and normal shell?
Classpath setting questionbash 彩色 shell prompt
Command historyhow to grep with more than one patterns in tcsh?
which shell is best?unix下编译fortran 的错误太多,看不到怎么办?
为什么time命令无法重定向?用上箭头键找以前运行过的命令
怎么从script中把环境变量传回到当前shell中? (转载)如何单步执行shell?
Doskey function in UNIX?shell programming问题:如何同时run多个作业
相关话题的讨论汇总
话题: about话题: history话题: csh话题: tcsh话题: bsh
进入Unix版参与讨论
1 (共1页)
ft
发帖数: 106
1
【 以下文字转载自 Linux 讨论区 】
【 原文由 ft 所发表 】
I recently installed a linux, but the configuration is still poor.
The up and down arrow key is not working when I want to make it
work like doskey. I wonder if anyone could tell me how to set
it up? I am using bsh, csh, and tcsh, and I hope to know
how to set them up respectively.
Thank you.
B**z
发帖数: 153
2
As I know of, it only works for tcsh, other shells work like vi or emacs
on the command line.

【在 ft 的大作中提到】
: 【 以下文字转载自 Linux 讨论区 】
: 【 原文由 ft 所发表 】
: I recently installed a linux, but the configuration is still poor.
: The up and down arrow key is not working when I want to make it
: work like doskey. I wonder if anyone could tell me how to set
: it up? I am using bsh, csh, and tcsh, and I hope to know
: how to set them up respectively.
: Thank you.

h******a
发帖数: 198
3
bsh,csh doesn't not support history.
bash, tcsh, ksh do.
bash is the default shell for Linux system, so it should work.
perhaps you need to write "set -o history" into your .bashrc in ur
home directory.

【在 ft 的大作中提到】
: 【 以下文字转载自 Linux 讨论区 】
: 【 原文由 ft 所发表 】
: I recently installed a linux, but the configuration is still poor.
: The up and down arrow key is not working when I want to make it
: work like doskey. I wonder if anyone could tell me how to set
: it up? I am using bsh, csh, and tcsh, and I hope to know
: how to set them up respectively.
: Thank you.

c*****t
发帖数: 1879
4
one correction, csh does support history, though in a wierd
way.

【在 h******a 的大作中提到】
: bsh,csh doesn't not support history.
: bash, tcsh, ksh do.
: bash is the default shell for Linux system, so it should work.
: perhaps you need to write "set -o history" into your .bashrc in ur
: home directory.

h******a
发帖数: 198
5
csh does support command history,
like !!,!n,!-n,!cmd
but not like bash/tcsh/ksh doskey style

【在 c*****t 的大作中提到】
: one correction, csh does support history, though in a wierd
: way.

1 (共1页)
进入Unix版参与讨论
相关主题
shell programming问题:如何同时run多个作业which shell is best?
Change shell to tcsh?为什么time命令无法重定向?
how to redirect error output under unix怎么从script中把环境变量传回到当前shell中? (转载)
what are the differnces between unix shell?Doskey function in UNIX?
AIX shell configuration如何改变CLASSPATH?
how to change login shell?login shell and normal shell?
Classpath setting questionbash 彩色 shell prompt
Command historyhow to grep with more than one patterns in tcsh?
相关话题的讨论汇总
话题: about话题: history话题: csh话题: tcsh话题: bsh