File: space.sh

package info (click to toggle)
binfmtc 0.17-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 800 kB
  • sloc: sh: 1,116; ansic: 891; cpp: 81; makefile: 81; asm: 48; java: 5; fortran: 3
file content (24 lines) | stat: -rwxr-xr-x 373 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# filename with space.
set -e 
mkdir tests || true
cat <<EOF > "tests/filename with space.c"
/*BINFMTC:
exit 1
 */
#include <stdio.h>

int main(int argc, char** argv)
{
  printf("Hello world\n");
  return 0;
}
EOF
chmod 700 "tests/filename with space.c"
if "tests/filename with space.c"; then
    EXIT=0;
else
    EXIT=1;
fi
rm "tests/filename with space.c" 

exit ${EXIT}