mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-01-31 11:37:35 +00:00
fa20edc44d
- Remove most __ASSEMBLER__ __LINKER__ ifdefs - Rename libc/intrin/bits.h to libc/serialize.h - Block pthread cancelation in fchmodat() polyfill - Remove `clang-format off` statements in third_party
21 lines
641 B
Bash
Executable file
21 lines
641 B
Bash
Executable file
#!/bin/bash
|
|
|
|
# Exit immediately if any command fails.
|
|
# https://stackoverflow.com/a/2871034
|
|
set -euxo pipefail
|
|
|
|
echo filename-escape-test-string > $'filename-escape-foo\nbar'
|
|
|
|
./xxhsum $'filename-escape-foo\nbar' | tee filename-escape-xxh64.txt
|
|
cat filename-escape-xxh64.txt
|
|
./xxhsum -c filename-escape-xxh64.txt
|
|
hexdump -C filename-escape-xxh64.txt
|
|
|
|
./xxhsum --tag $'filename-escape-foo\nbar' | tee filename-escape-xxh64-tag.txt
|
|
cat filename-escape-xxh64-tag.txt
|
|
./xxhsum -c filename-escape-xxh64-tag.txt
|
|
hexdump -C filename-escape-xxh64-tag.txt
|
|
|
|
rm filename-escape-xxh64-tag.txt
|
|
rm filename-escape-xxh64.txt
|
|
rm $'filename-escape-foo\nbar'
|