﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc
3374	LibreOffice for loop fails to create launcher scripts	Arthur Radley	bdubbs@…	"For me anyway, the for loop immediately following the make install command fails with a bash error causing the whole block of commands not to complete.

{{{

echo ""#!/bin/bash
bash: !/bin/bash: event not found
}}}


I was copying and pasting the whole block of commands from the book directly to a bash shell command prompt like I often do. But maybe there is something about my environment causing this particular echo line not work as expected for me. Anyway, I created these launcher scripts sort of manually...


{{{
cat > /usr/bin/base << ""EOF""
#!/bin/bash
exec /usr/lib/libreoffice/program/soffice --nologo --base ""${@}""
EOF
cat > /usr/bin/calc << ""EOF""
#!/bin/bash
exec /usr/lib/libreoffice/program/soffice --nologo --calc ""${@}""
EOF
cat > /usr/bin/draw << ""EOF""
#!/bin/bash
exec /usr/lib/libreoffice/program/soffice --nologo --draw ""${@}""
EOF
cat > /usr/bin/impress << ""EOF""
#!/bin/bash
exec /usr/lib/libreoffice/program/soffice --nologo --impress ""${@}""
EOF
cat > /usr/bin/math << ""EOF""
#!/bin/bash
exec /usr/lib/libreoffice/program/soffice --nologo --math ""${@}""
EOF
cat > /usr/bin/writer << ""EOF""
#!/bin/bash
exec /usr/lib/libreoffice/program/soffice --nologo --writer ""${@}""
EOF
}}}


Maybe someone can tell me why the book's commands might be doing this only for me, or maybe someone can think of a better way to generate these six scripts in the book."	task	closed	normal		BOOK	SVN	medium	fixed		
