aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Loeser <halcy0n@gentoo.org>2008-01-24 04:26:20 +0000
committerMark Loeser <halcy0n@gentoo.org>2008-01-24 04:26:20 +0000
commit91ae0f6ce3a10fa5962da842b3962d33f4357cbb (patch)
tree42d85fb55cd150b7101b0a742bce7c525d519ddc /tools-reference
parentAdd in a common mistake of specifying the full path to a file instead of just... (diff)
downloaddevmanual-91ae0f6ce3a10fa5962da842b3962d33f4357cbb.tar.gz
devmanual-91ae0f6ce3a10fa5962da842b3962d33f4357cbb.tar.bz2
devmanual-91ae0f6ce3a10fa5962da842b3962d33f4357cbb.zip
Quote variables correctly; bug #206645
git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/devmanual/trunk@117 176d3534-300d-0410-8db8-84e73ed771c3
Diffstat (limited to 'tools-reference')
-rw-r--r--tools-reference/find/text.xml6
-rw-r--r--tools-reference/sed/text.xml4
2 files changed, 5 insertions, 5 deletions
diff --git a/tools-reference/find/text.xml b/tools-reference/find/text.xml
index cf3da58..d643607 100644
--- a/tools-reference/find/text.xml
+++ b/tools-reference/find/text.xml
@@ -73,7 +73,7 @@ standard output. This can be used in a <c>while</c> loop:
</p>
<codesample lang="ebuild">
-find ${S} -type f | while read f ; do
+find "${S}" -type f | while read f ; do
einfo "Doing unholy things to ${f}"
done
</codesample>
@@ -88,7 +88,7 @@ Or a <c>for</c> loop (for small numbers of files):
</p>
<codesample lang="ebuild">
-for f in $(find ${S} -type f) ; do
+for f in $(find "${S}" -type f) ; do
einfo "Calling down holy vengance upon ${f}"
done
</codesample>
@@ -107,7 +107,7 @@ doesn't gobble up the special characters:
</p>
<codesample lang="ebuild">
-find ${S} -name '*.backup' -exec rm '{}' \;
+find "${S}" -name '*.backup' -exec rm '{}' \;
</codesample>
<p>
diff --git a/tools-reference/sed/text.xml b/tools-reference/sed/text.xml
index 166370c..1b01b02 100644
--- a/tools-reference/sed/text.xml
+++ b/tools-reference/sed/text.xml
@@ -50,10 +50,10 @@ from the plugin files and convert it to Vim help format.
# problems for us during the unmerge. Fortunately, sed can fix this
# for us. First, we extract the documentation:
sed -e '1,/^" HelpExtractorDoc:$/d' \
- ${S}/plugin/ZoomWin.vim > ${S}/doc/ZoomWin.txt \
+ "${S}"/plugin/ZoomWin.vim > ${S}/doc/ZoomWin.txt \
|| die "help extraction failed"
# Then we remove the help extraction code from the plugin file:
-sed -i -e '/^" HelpExtractor:$/,$d' ${S}/plugin/ZoomWin.vim \
+sed -i -e '/^" HelpExtractor:$/,$d' "${S}"/plugin/ZoomWin.vim \
|| die "help extract remove failed"
</codesample>