]> arthur.barton.de Git - bup.git/blob - dev/echo-argv-bytes
main: always put BUP_FORCE_TTY into the environment
[bup.git] / dev / echo-argv-bytes
1 #!/bin/sh
2 """": # -*-python-*-
3 bup_exec="$(dirname "$0")/bup-exec" || exit $?
4 exec "$bup_exec" "$0" ${1+"$@"}
5 """
6
7 from __future__ import absolute_import, print_function
8
9 from os.path import abspath, dirname
10 from sys import stdout
11 import os, sys
12
13 from bup import compat
14
15 for arg in compat.get_argvb():
16     os.write(stdout.fileno(), arg)
17     os.write(stdout.fileno(), b'\0\n')
18     stdout.flush()