[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[plamo:21633] Re: Plamo3.3不具合あれこれ
-
From:Shun-ichi TAHARA (田原 俊一)
-
Date:Mon, 5 Jan 2004 17:53:05 +0900 (JST)
- Subject: [plamo:21633] Re: Plamo3.3不具合あれこれ
- From: Shun-ichi TAHARA (田原 俊一) <jado@xxxxxxxxxxxxxxx>
- Date: Mon, 05 Jan 2004 17:53:01 +0900 (JST)
From: Norimasa Matsumoto <matsu@bi.wakwak.com>
Message-Id: <20040105.172919.74749938.matsu@bi.wakwak.com>
> remotehost が Plamo-3.x であった場合、
> ssh remotehost command を実行すると、
>
> stty: standard input: Invalid argument
> stty: standard input: Invalid argument
> stty: standard input: Invalid argument
>
> と表示されます。rsh, scp, rsync 等でも起こります。
あー、下手したら /bin/bash を指定したシェルスクリプトでも起きるかも。
# 未確認ですが
> # 端末によるBackSpaceキーの調整
> if tty -s ; then ## 追加
> stty erase '^?'
> :
> 中略
> :
> stty stop undef
> fi ## 追加
> と書き換えて使用しています。
手元では、tcsh ですが
if ( ! $?prompt ) exit
として、それより後ろにコマンドラインシェルとして必要な設定(stty とか各
種 set/unset とか alias とか)を入れてます。
今見ると .bashrc の方にはこの手のヤツは入れてないのですが、
if [ -n "$PS1" ]; then exit; fi
とか入れたら効きそうです。どうでしょう?
って、bash だとどっちみち test を起動するから、プロセスの節約、という
意味ではどっちでもいいのですが、man bash して「起動」の項目を見てもら
えるとわかりますが、一応シェルとしてのお作法はこっちのようです。
_______________________________
田原 俊一 jado@flowernet.gr.jp, shunichi_tahara@zenrin.co.jp
http://flowernet.gr.jp/jado/
FingerPrint: 16 9E 70 3B 05 86 5D 08 B8 4C 47 3A E7 E9 8E D9
 ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄
- Follow-Ups
-
- [plamo:21635] Re: Plamo3.3不具合あれこれ, MOUE Kiyoshi
- References
-
- [plamo:21631] Re: Plamo3.3不具合あれこれ, Norimasa Matsumoto
[検索ページ]
[メール一覧]
Plamo ML 公開システム