execve: Use interp in shebang as is
Fujitsu: POSTK_DEBUG_TEMP_FIX_9 Refs: #995 Change-Id: I09751d13c4fecd68087d47815029c0b65e51f18a
This commit is contained in:
committed by
Masamichi Takagi
parent
f1a40a409f
commit
b920da5103
23
test/issues/995/Makefile
Normal file
23
test/issues/995/Makefile
Normal file
@ -0,0 +1,23 @@
|
||||
CC = gcc
|
||||
|
||||
TARGET=put_args call_execve
|
||||
|
||||
all: $(TARGET)
|
||||
|
||||
put_args: put_args.c
|
||||
$(CC) -o $@ $^
|
||||
|
||||
call_execve: call_execve.c
|
||||
$(CC) -o $@ $^
|
||||
|
||||
test: all
|
||||
@ln -nfs ./put_args ./syml_put_args
|
||||
@echo "#!./syml_put_args" > test_01.sh
|
||||
@echo "#!`pwd`/syml_put_args" > test_02.sh
|
||||
@chmod +x ./test_01.sh
|
||||
@chmod +x ./test_02.sh
|
||||
@sh ./C995.sh
|
||||
|
||||
clean:
|
||||
rm -f $(TARGET) *.o ./syml_put_args ./test_01.sh ./test_02.sh
|
||||
|
||||
Reference in New Issue
Block a user