neysx 06/04/25 12:58:14
Modified: bash-by-example-p2.xml
Log:
#129846 s:${x##.*}:{x##*.}:g
Revision Changes Path
1.6 xml/htdocs/doc/en/articles/bash-by-example-p2.xml
file :
http://www.gentoo.org/cgi-bin/viewcvs.cgi/xml/htdocs/doc/en/articles/bash-by-example-p2.xml?rev=1.6&content-type=text/x-cvsweb-markup&cvsroot=gentoo
plain:
http://www.gentoo.org/cgi-bin/viewcvs.cgi/xml/htdocs/doc/en/articles/bash-by-example-p2.xml?rev=1.6&content-type=text/plain&cvsroot=gentoo
diff :
http://www.gentoo.org/cgi-bin/viewcvs.cgi/xml/htdocs/doc/en/articles/bash-by-example-p2.xml.diff?r1=1.5&r2=1.6&cvsroot=gentoo
Index: bash-by-example-p2.xml
===================================================================
RCS file:
/var/cvsroot/gentoo/xml/htdocs/doc/en/articles/bash-by-example-p2.xml,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- bash-by-example-p2.xml 9 Oct 2005 17:13:23 -0000 1.5
+++ bash-by-example-p2.xml 25 Apr 2006 12:58:14 -0000 1.6
@@ -1,5 +1,5 @@
<?xml version='1.0' encoding="UTF-8"?>
-<!-- $Header:
/var/cvsroot/gentoo/xml/htdocs/doc/en/articles/bash-by-example-p2.xml,v 1.5
2005/10/09 17:13:23 rane Exp $ -->
+<!-- $Header:
/var/cvsroot/gentoo/xml/htdocs/doc/en/articles/bash-by-example-p2.xml,v 1.6
2006/04/25 12:58:14 neysx Exp $ -->
<!DOCTYPE guide SYSTEM "/dtd/guide.dtd">
<guide link="/doc/en/articles/bash-by-example-p2.xml" disclaimer="articles">
@@ -21,7 +21,7 @@
version of the original article, and contains various improvements made by the
Gentoo Linux Documentation team -->
-<version>1.3</version>
+<version>1.4</version>
<date>2005-10-09</date>
<chapter>
@@ -459,10 +459,10 @@
<p>
Above, bash first expands "${x##*.}". In the code, "$x" is the name of a file,
-and "${x##.*}" has the effect of stripping all text except that following the
+and "${x##*.}" has the effect of stripping all text except that following the
last period in the filename. Then, bash compares the resultant string against
-the values listed to the left of the ")"s. In this case, "${x##.*}" gets
-compared against "gz", then "bz2" and finally "*". If "${x##.*}" matches any of
+the values listed to the left of the ")"s. In this case, "${x##*.}" gets
+compared against "gz", then "bz2" and finally "*". If "${x##*.}" matches any of
these strings or patterns, the lines immediately following the ")" are
executed,
up until the ";;", at which point bash continues executing lines after the
terminating "esac". If no patterns or strings are matched, no lines of code are
--
[email protected] mailing list