File: run.osh

package info (click to toggle)
omake 0.10.7-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 14,076 kB
  • sloc: ml: 49,729; ansic: 5,163; makefile: 688; sh: 110
file content (16 lines) | stat: -rw-r--r-- 379 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
open ../../diff
osh shell.om > stdout

expected(line) =
   if $(eq $(line), 2)
      value $"Current directory: $(dir sub/sub)"
   else
      value $"Current directory: $(dir sub)"

awk(stdout)
default
   if $(not $(equal $0, $(expected $(FNR))))
      eprintln($"Line $(FNR) mismatch:")
      eprintln($"Expected: $(expected $(FNR))")
      eprintln($"Actual: $0")
      exit 1