File: unicode-output.t

package info (click to toggle)
screen 4.8.0-6
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 5,208 kB
  • sloc: ansic: 40,067; sh: 1,779; makefile: 352; perl: 63
file content (23 lines) | stat: -rw-r--r-- 550 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh

echo 1..$(ls -1 $(dirname $0)/*.txt | wc -l)

. `dirname $0`/boilerplate.sh

LC_ALL=C.UTF-8
export LC_ALL
TERM=xterm
export TERM

for file in $(ls -1 $(dirname $0)/*.txt) ; do
    echo === BEGIN $file ===
    cat $file
    echo === END $file ===
    echo "=== BEGIN $file (escaped)  ==="
    cat -v $file
    echo "=== END $file (escaped) ==="
    script -c "$SCREEN cat $file" ${file}.output | cat -v
    fgrep -F -f $file -q ${file}.output
    check_exit_code_true Found contents of $file in ${file}.output
    rm -f ${file}.output
done