c shell script不會return - Linux

By Eden
at 2017-11-28T14:51
at 2017-11-28T14:51
Table of Contents
最近剛學寫shelll script本身學過 c和java
是有程式的背景的
#! /bin/csh
echo "Hello World! \a \n"
exit 0
寫了一個hello world
Script確實會show “hello world,” 也會停止
但在我朋友的帳號上卻不會終止
要手動ctrl+c把他停掉
但如果把第一行指定成sh就會終止
#! /bin/sh
用set指令去看,預設的shell也確實是/bin/csh
我和朋友在同一台server上,目前想不到為什麼
特來請教各位linux老手
謝謝
--
是有程式的背景的
#! /bin/csh
echo "Hello World! \a \n"
exit 0
寫了一個hello world
Script確實會show “hello world,” 也會停止
但在我朋友的帳號上卻不會終止
要手動ctrl+c把他停掉
但如果把第一行指定成sh就會終止
#! /bin/sh
用set指令去看,預設的shell也確實是/bin/csh
我和朋友在同一台server上,目前想不到為什麼
特來請教各位linux老手
謝謝
--
Tags:
Linux
All Comments

By Carolina Franco
at 2017-11-29T13:32
at 2017-11-29T13:32

By Steve
at 2017-12-02T13:20
at 2017-12-02T13:20

By Kelly
at 2017-12-05T17:54
at 2017-12-05T17:54

By Mason
at 2017-12-10T08:40
at 2017-12-10T08:40

By Donna
at 2017-12-15T00:10
at 2017-12-15T00:10

By Carol
at 2017-12-17T01:06
at 2017-12-17T01:06

By Agatha
at 2017-12-17T10:37
at 2017-12-17T10:37

By Carolina Franco
at 2017-12-18T06:05
at 2017-12-18T06:05
的script都加上去

By Rosalind
at 2017-12-20T23:16
at 2017-12-20T23:16

By Freda
at 2017-12-21T23:56
at 2017-12-21T23:56

By Gilbert
at 2017-12-22T05:40
at 2017-12-22T05:40

By Sandy
at 2017-12-26T20:35
at 2017-12-26T20:35
就可以跑了.

By Freda
at 2017-12-29T18:14
at 2017-12-29T18:14
the .login file
查一下這兩個檔案

By Mary
at 2018-01-03T00:35
at 2018-01-03T00:35

By Rae
at 2018-01-03T19:55
at 2018-01-03T19:55

By Jacky
at 2018-01-07T14:02
at 2018-01-07T14:02

By Rachel
at 2018-01-11T06:12
at 2018-01-11T06:12

By Andy
at 2018-01-12T17:56
at 2018-01-12T17:56
嗎?
Related Posts
konsole中無法使用gcin

By Belly
at 2017-11-28T14:15
at 2017-11-28T14:15
apt-key 如何取得 keyid ?

By Kristin
at 2017-11-28T06:59
at 2017-11-28T06:59
大陸長城封鎖網站解決方法

By Lauren
at 2017-11-27T22:03
at 2017-11-27T22:03
複製個PTT站應該很簡單?

By Ophelia
at 2017-11-27T21:46
at 2017-11-27T21:46
debian裡firefox的視窗列

By Kama
at 2017-11-27T16:23
at 2017-11-27T16:23