diff options
| author | Bjørn Forsman <bjorn.forsman@gmail.com> | 2014-01-03 13:55:41 +0100 |
|---|---|---|
| committer | Bjørn Forsman <bjorn.forsman@gmail.com> | 2014-01-03 14:47:39 +0100 |
| commit | f4f0d2ecb96ee731cd1091c052afa50f0353bb94 (patch) | |
| tree | b3f30d6dd1c87dbbd6107dba4cc9942b0eaff242 /pkgs/development/python-modules/GitPython/hardcode-git-path.patch | |
| parent | 86802e68ffd1981af92303a7a8a91a2723ca84ca (diff) | |
stdenv/setup.sh: fix breakage when shebang contains '\'
Some programs, e.g. guile-config, has a shebang that ends in '\':
#!/usr/bin/guile-1.8 \
-e main -s
!#
;;;; guile-config --- utility for linking programs with Guile
;;;; Jim Blandy <jim@red-bean.com> --- September 1997
This currently breaks patchShebangs:
$ read oldPath arg0 args <<< 'shebang \'; echo $?
1
$ echo $oldPath
shebang
$ echo $arg0
$ echo $args
(And setup.sh/patchShebangs is run with 'set -e' so any command that
return non-zero aborts the build.)
Fix by telling 'read' to not interpret backslashes (with the -r flag):
$ read -r oldPath arg0 args <<< 'shebang \'; echo $?
0
$ echo $oldPath
shebang
$ echo $arg0
\
$ echo $args
Also needed: escape the escape characters so that sed doesn't interpret
them.
Diffstat (limited to 'pkgs/development/python-modules/GitPython/hardcode-git-path.patch')
0 files changed, 0 insertions, 0 deletions
