unix - then not expected error on k shell script -
I wrote a simple K Shell program, but I did not expect the following error "line 11: 0403-057 syntax error" ' is.'
The code is
#! / Usr / bin / ksh function check_rm {number = $ # # Code number of the parameter if [$ 1-gate 0]]; #if RC is a success if [["$ number" -gt 2]]; Then / usr / bin / mv $ 4 $ 3 echo "error for $ 2" fi # user_name = `whoami` #mail_body =" $ 3 $ user_name is checked from "#echo $ mail if no other [[" $ Number "-gt 2]]; Then echo "echo" for "$ 2" then "usf / bin / rm -rf $ 4f echo" was "3f successful" }
Can anyone please help Could? if
and [[; Ksh needs to tell that there are two different ones. The script has the same problem later; You have to fix both events.
Comments
Post a Comment