由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Unix版 - tc shell script??
相关主题
[转载] 如何返回当前窗口正在运行的程序名称a panic for help
Help! shell programming帮帮忙,用C作一个SHELL
我的alia放在script里为什么不工作?bash prompt 一问
够执着的 --- Re: 我的alia放在script里为什么不工作?bash 彩色 shell prompt
郁闷!求助!mget question in ftp
talk about data access problemQuestions about KornShell
如果一直都不logout的话which key equals stop+A on hyper terminal? need to go to 'ok' prompt, pls help
mget *疑问请问如何在free bsd下安装zip drive
相关话题的讨论汇总
话题: rm话题: alias话题: shell话题: found话题: log
进入Unix版参与讨论
1 (共1页)
t****b
发帖数: 3
1
What is the problem with this shell scrip? The file name is flush.
alias rm rm
rm -rf log
rm -rf *_log
source ~/.tcshrc
I got prompt
rm: alias not found
rm: alias not found
flush: source: not found
c*****t
发帖数: 1879
2
I don't think aliases work in shell scripts.

【在 t****b 的大作中提到】
: What is the problem with this shell scrip? The file name is flush.
: alias rm rm
: rm -rf log
: rm -rf *_log
: source ~/.tcshrc
: I got prompt
: rm: alias not found
: rm: alias not found
: flush: source: not found

m*******m
发帖数: 182
3
I think thereis an infinte loop here with alias.

【在 c*****t 的大作中提到】
: I don't think aliases work in shell scripts.
c*****t
发帖数: 1879
4
no. I always use
alias ls ls -F
In that case, shell looks for the real executable.

【在 m*******m 的大作中提到】
: I think thereis an infinte loop here with alias.
t****b
发帖数: 3
5
It seems this script works well except I got prompts.
When I comment out the first line, I got prompt
rm: examine files in directory log (yes/no)?

【在 c*****t 的大作中提到】
: I don't think aliases work in shell scripts.
m*******m
发帖数: 182
6
What if you use /bin/rm instead of rm? There could be alias
of rm already.

【在 t****b 的大作中提到】
: It seems this script works well except I got prompts.
: When I comment out the first line, I got prompt
: rm: examine files in directory log (yes/no)?

1 (共1页)
进入Unix版参与讨论
相关主题
请问如何在free bsd下安装zip drive郁闷!求助!
Need your help!Did you meet such a condition?talk about data access problem
怎样改成tcsh?如果一直都不logout的话
FTP:mget *,how to avoid inputing yes for every fimget *疑问
[转载] 如何返回当前窗口正在运行的程序名称a panic for help
Help! shell programming帮帮忙,用C作一个SHELL
我的alia放在script里为什么不工作?bash prompt 一问
够执着的 --- Re: 我的alia放在script里为什么不工作?bash 彩色 shell prompt
相关话题的讨论汇总
话题: rm话题: alias话题: shell话题: found话题: log