sapling/eden/scm/tests/test-debugshell-args.t

13 lines
266 B
Perl
Raw Normal View History

#chg-compatible
$ cat >> foo.py << EOF
> ui.write('argv = %r\n' % (sys.argv,))
> EOF
$ hg debugshell foo.py 1 2 3
argv = ('foo.py', '1', '2', '3')
$ hg debugshell -c "$(cat foo.py)" 1 2 3
argv = ('1', '2', '3')
$ hg debugshell < foo.py
argv = ()