Altera_Forum
Honored Contributor
20 years agosh doesn't work ?
Hi, All
I want use shell script , but script does'nt work. It seems '[' character reading fail. Does anybody have a those things and know about how to fix it? My problem shell script and results are below. <div class='quotetop'>QUOTE </div> --- Quote Start --- # /bin/sh -xv test# !/bin/sh if [ $# -ne 2 ]; then echo wrong. exit fi +[ 0 -ne 2 ] [: not found[/b] --- Quote End --- And Under Fedora linux results are below. <div class='quotetop'>QUOTE </div> --- Quote Start --- # /bin/sh -xv test# !/bin/sh if [ $# -ne 2 ]; then echo wrong. exit fi + '[' 0 -ne 2 ']'+ echo wrong. wrong. + exit[/b] --- Quote End --- http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/huh.gif