aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Eloe <powerofazure@gmail.com>2010-07-07 15:01:24 -0500
committerNathan Eloe <powerofazure@gmail.com>2010-07-07 16:19:33 -0500
commite6e52443bf7d8252fa9c2a838cd68106f29fc347 (patch)
treea3aa8fbb1341fb9244f84bbbdd7ab9b16ea4c835 /bashast/gunit/fname.gunit
parentBug fix: parameter pattern matching (diff)
downloadlibbash-e6e52443bf7d8252fa9c2a838cd68106f29fc347.tar.gz
libbash-e6e52443bf7d8252fa9c2a838cd68106f29fc347.tar.bz2
libbash-e6e52443bf7d8252fa9c2a838cd68106f29fc347.zip
Expansions in fname
Removes fpath rule, and changes fname to allow expansions in strings. This commit fixes some stack overflows in ebuilds caused by large filenames.
Diffstat (limited to 'bashast/gunit/fname.gunit')
-rw-r--r--bashast/gunit/fname.gunit29
1 files changed, 17 insertions, 12 deletions
diff --git a/bashast/gunit/fname.gunit b/bashast/gunit/fname.gunit
index 6f83425..ecdfe14 100644
--- a/bashast/gunit/fname.gunit
+++ b/bashast/gunit/fname.gunit
@@ -1,15 +1,20 @@
gunit bashast;
fname:
-"+%Y%m%d" -> "+%Y%m%d"
-"\"http://dev.gentoo.org/~mpagano/genpatches\"" -> "\"http://dev.gentoo.org/~mpagano/genpatches\""
-"\"\"" -> "\"\""
-"2.7" -> "2.7"
-"\"For more info on this patchset, and how to report problems, see:\"" -> "\"For more info on this patchset, and how to report problems, see:\""
-"\"asdf;!\"" -> "\"asdf;!\""
-"\"$(whoami)\"" -> "\"$(whoami)\""
-"\"`whoami`\"" -> "\"`whoami`\""
-"asdf#" -> "asdf#"
-"'asdf'" -> "'asdf'"
-"'asdf\"asdf'" -> "'asdf\"asdf'"
-"\"asdf'asdf\"" -> "\"asdf'asdf\""
+"+%Y%m%d" -> (STRING +%Y%m%d)
+"\"http://dev.gentoo.org/~mpagano/genpatches\"" -> (STRING http://dev.gentoo.org/~mpagano/genpatches)
+"\"\"" -> "STRING"
+"2.7" -> (STRING 2.7)
+"\"For more info on this patchset, and how to report problems, see:\"" -> (STRING For more info on this patchset, and how to report problems, see:)
+"\"asdf;!\"" -> (STRING asdf;!)
+"\"$(whoami)\"" -> (STRING (COMMAND_SUB (COMMAND (STRING whoami))))
+"\"`whoami`\"" -> (STRING (COMMAND_SUB (COMMAND (STRING whoami))))
+"'`whoami`'" -> (STRING `whoami`)
+"'$(whoami)'" -> (STRING $(whoami))
+"\"${P}\"" -> (STRING (VAR_REF P))
+"'${P}'" -> (STRING ${P})
+"asdf#" -> (STRING asdf#)
+"'asdf'" -> (STRING asdf)
+"'asdf\"asdf'" -> (STRING asdf"asdf)
+"\"asdf'asdf\"" -> (STRING asdf'asdf)
+"!/bin/bash" -> (STRING !/bin/bash)