var_LINENO2.tests 222 B

12345678
  1. #skip lines: make "line number within function" differ from overall line number
  2. #skip lines
  3. f() {
  4. echo "In function: LINENO=$LINENO"
  5. }
  6. echo "Start LINENO=$LINENO, calling function"
  7. f
  8. echo "After function: LINENO=$LINENO"