From: Ian Jackson Date: Sat, 6 Feb 2016 16:08:02 +0000 (+0000) Subject: dev-cura: Make into a proper script X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=2b59438d3317b9046fdb5c9563ea0321d4808149;p=cura.git dev-cura: Make into a proper script Firstly, move the #! to the top, as the kernels require (otherwise if you are lucky your shell can run it, but wrapper programs can't). Secondly, use `exec' to have dev-cura exec cura without forking. With these two changes, it is easier to strace dev-cura: you can run strace -ot ./dev-cura rather than strace -fot bash ./dev-cura Signed-off-by: Ian Jackson --- diff --git a/dev-cura b/dev-cura index 9cd99f46..f83b768a 100755 --- a/dev-cura +++ b/dev-cura @@ -1,3 +1,3 @@ #!/bin/sh ## cura -PYTHONPATH=$PYTHONPATH:. python ./scripts/linux/cura.py "$@" +PYTHONPATH=$PYTHONPATH:. exec python ./scripts/linux/cura.py "$@"