user@localhost ~ $ python interact.py please input. >>> test Traceback (most recent call last): File "", line 1, in NameError: name 'test' is not defined >>> hoge Traceback (most recent call last): File "", line 1, in NameError: name 'hoge' is not defined >>>
なんかエラーになる。。。
ライブラリには、以下のように記述されているけど、 readfunc とか local って何だろう。。。
while read a do n=1 while [ "$a" != "$l" ] do l= c=${a:0:$n} d=$((`expr length $a`/$n)) for i in `seq 1 $d` do l=$l$c done n=$(($n+1)) done echo $c done