mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-03 18:13:01 +00:00
When skipping white space after #! to find the interpreter
only skip ' ' and tabs. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15063
This commit is contained in:
parent
9b8670b58d
commit
909b88c40b
@ -55,7 +55,7 @@ Bool VG_(match_script)(const void *hdr, Int len)
|
||||
// Find interpreter name, make sure it's an absolute path (starts with
|
||||
// '/') and has at least one more char. First, skip over any space
|
||||
// between the #! and the start of the interpreter name
|
||||
while (interp < end && VG_(isspace)(*interp)) interp++;
|
||||
while (interp < end && (*interp == ' ' || *interp == '\t')) interp++;
|
||||
|
||||
// overrun?
|
||||
if (interp >= end) return False; // can't find start of interp name
|
||||
|
||||
@ -159,6 +159,7 @@ EXTRA_DIST = \
|
||||
shell_valid1 shell_valid1.vgtest shell_valid1.stderr.exp \
|
||||
shell_valid2 shell_valid2.vgtest shell_valid2.stderr.exp \
|
||||
shell_valid3 shell_valid3.vgtest shell_valid3.stderr.exp \
|
||||
shell_valid4 shell_valid4.vgtest shell_valid4.stderr.exp shell_valid4.stdout.exp \
|
||||
shell_zerolength shell_zerolength.vgtest shell_zerolength.stderr.exp \
|
||||
shell_zerolength.stderr.exp-dash \
|
||||
sha1_test.stderr.exp sha1_test.vgtest \
|
||||
|
||||
3
none/tests/shell_valid4
Executable file
3
none/tests/shell_valid4
Executable file
@ -0,0 +1,3 @@
|
||||
#!
|
||||
/bin/echo
|
||||
|
||||
0
none/tests/shell_valid4.stderr.exp
Normal file
0
none/tests/shell_valid4.stderr.exp
Normal file
1
none/tests/shell_valid4.stdout.exp
Normal file
1
none/tests/shell_valid4.stdout.exp
Normal file
@ -0,0 +1 @@
|
||||
|
||||
7
none/tests/shell_valid4.vgtest
Normal file
7
none/tests/shell_valid4.vgtest
Normal file
@ -0,0 +1,7 @@
|
||||
#
|
||||
# This test used to write
|
||||
# ./shell_valid4
|
||||
# to stdout which is not what happens when executed natively.
|
||||
#
|
||||
prog: shell_valid4
|
||||
vgopts: -q
|
||||
Loading…
x
Reference in New Issue
Block a user