2012-03-20 /erc/rc autobootx if [ $1x = autobootx ] then 〜〜 fi なぜわざわざ必要ない"x"が必要なのか調べていたら、やっとわかった。 #!/bin/sh read input if [ $input = 'q' ]; then echo QUIT fi の用なシェルスクリプトを作って、 入力待ちの状態でエンターキーを押すと、 ./hoge.sh: [: =: unary operator expected と出力される。 そのような事を避けるために"x"を付けるのは、定石らしい。