File: echo-argv-bytes

package info (click to toggle)
bup 0.33.10-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,720 kB
  • sloc: python: 15,905; sh: 5,799; ansic: 2,965; pascal: 669; makefile: 21
file content (18 lines) | stat: -rwxr-xr-x 395 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh
"""": # -*-python-*-
bup_exec="$(dirname "$0")/bup-exec" || exit $?
exec "$bup_exec" "$0" ${1+"$@"}
"""

from __future__ import absolute_import, print_function

from os.path import abspath, dirname
from sys import stdout
import os, sys

from bup import compat

for arg in compat.get_argvb():
    os.write(stdout.fileno(), arg)
    os.write(stdout.fileno(), b'\0\n')
    stdout.flush()