QuestionQ51Verified/Basic Unix SkillsCopy linkReport a problemAsk AstroTutorSave questionWhich of the following excerpts shows a valid if condition in the Bourne shell?ABCDEShow AnswerAnswerExplanationA Bourne/POSIX shell if construct has the form if compound-list; then compound-list; fi (with newlines valid as command separators). [ "$var" = "test" ] is a valid test command, and the required then and fi delimit the conditional body.Learn morePOSIX Shell Command LanguageShow comments0Show commentsCommunity DiscussionNo comments yet. Be the first to start the discussion!
Community Discussion