projects
/
platform
/
upstream
/
rpm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
398ae27
)
Allow whitespace between #! and the interpreter.
author
Ville Skyttä
<ville.skytta@iki.fi>
Wed, 10 Feb 2010 19:56:33 +0000
(21:56 +0200)
committer
Panu Matilainen
<pmatilai@redhat.com>
Thu, 11 Feb 2010 13:44:44 +0000
(15:44 +0200)
scripts/interpreter.req
patch
|
blob
|
history
diff --git
a/scripts/interpreter.req
b/scripts/interpreter.req
index
cbf4002
..
3fee818
100755
(executable)
--- a/
scripts/interpreter.req
+++ b/
scripts/interpreter.req
@@
-2,5
+2,5
@@
# TODO: handle #!/usr/bin/env somehow
while read filename; do
- sed -n -e '1s:^#!\([^[:space:]]*\).*:\1:p' "$filename"
+ sed -n -e '1s:^#!
[[:space:]]*
\([^[:space:]]*\).*:\1:p' "$filename"
done