Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 136406 - rox.eclass missing quotes
Summary: rox.eclass missing quotes
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Daniel Black (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 99711
  Show dependency tree
 
Reported: 2006-06-11 07:14 UTC by Peter Hyman
Modified: 2006-06-11 16:18 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
rox.eclass (rox.eclass,3.73 KB, text/plain)
2006-06-11 07:16 UTC, Peter Hyman
Details
rox.eclass.diff (rox.eclass.diff,3.04 KB, patch)
2006-06-11 16:18 UTC, Daniel Black (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Hyman 2006-06-11 07:14:25 UTC
The following snippet results in incorrect evaluation of $KEEP_SRC. The variable should have been quoted.

		if [ -n ${KEEP_SRC} ]; then
			( cd src
			make clean
			)
		else
			rm -rf src
		fi
Comment 1 Peter Hyman 2006-06-11 07:16:06 UTC
Created attachment 88908 [details]
rox.eclass

corrects unquoted variable in -n test. 

if [ -n "${KEEP_SRC}" ] instead of
if [ -n ${KEEP_SRC} ]
Comment 2 Daniel Black (RETIRED) gentoo-dev 2006-06-11 16:18:29 UTC
Created attachment 88944 [details, diff]
rox.eclass.diff

May as well go all the way. Tell me if I've "corrected" too far.
Comment 3 Daniel Black (RETIRED) gentoo-dev 2006-06-11 16:18:57 UTC
commited