Separating captured text, integer value, and status

A Bash session continues after commands with nonzero statuses and executes the following lines in order. Which statements about the resulting variable values are true? Select all that apply.


Shell
count=$(printf '9\n\n')
result=$((count - 9))
(( result ))
status=$?
Choose an answer

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

More Bash Expressions Questions: