Fix special characters interferng in scripts
This commit is contained in:
parent
20a2199bbf
commit
2f38bc640c
25 changed files with 29 additions and 29 deletions
|
@ -1,6 +1,6 @@
|
|||
mkdir "$CODEDIR" && cd "$CODEDIR"
|
||||
|
||||
echo "$1" > program.pas
|
||||
printf %s "$1" > program.pas
|
||||
|
||||
# fpc does not use stderr, ld however does, capture both
|
||||
res="$(fpc program.pas 2>&1)"
|
||||
|
@ -8,7 +8,7 @@ res="$(fpc program.pas 2>&1)"
|
|||
if [ $? -eq 0 ]; then
|
||||
./program
|
||||
else
|
||||
echo "$res"
|
||||
printf %s "$res"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue