Gentoo Archives: gentoo-doc-cvs

From: Xavier Neys <neysx@×××××××××××.org>
To: gentoo-doc-cvs@l.g.o
Subject: [gentoo-doc-cvs] cvs commit: bash-by-example-p2.xml
Date: Tue, 25 Apr 2006 12:58:15
Message-Id: 200604251258.k3PCwF4Q020124@robin.gentoo.org
1 neysx 06/04/25 12:58:14
2
3 Modified: bash-by-example-p2.xml
4 Log:
5 #129846 s:${x##.*}:{x##*.}:g
6
7 Revision Changes Path
8 1.6 xml/htdocs/doc/en/articles/bash-by-example-p2.xml
9
10 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
11 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
12 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
13
14 Index: bash-by-example-p2.xml
15 ===================================================================
16 RCS file: /var/cvsroot/gentoo/xml/htdocs/doc/en/articles/bash-by-example-p2.xml,v
17 retrieving revision 1.5
18 retrieving revision 1.6
19 diff -u -r1.5 -r1.6
20 --- bash-by-example-p2.xml 9 Oct 2005 17:13:23 -0000 1.5
21 +++ bash-by-example-p2.xml 25 Apr 2006 12:58:14 -0000 1.6
22 @@ -1,5 +1,5 @@
23 <?xml version='1.0' encoding="UTF-8"?>
24 -<!-- $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 $ -->
25 +<!-- $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 $ -->
26 <!DOCTYPE guide SYSTEM "/dtd/guide.dtd">
27
28 <guide link="/doc/en/articles/bash-by-example-p2.xml" disclaimer="articles">
29 @@ -21,7 +21,7 @@
30 version of the original article, and contains various improvements made by the
31 Gentoo Linux Documentation team -->
32
33 -<version>1.3</version>
34 +<version>1.4</version>
35 <date>2005-10-09</date>
36
37 <chapter>
38 @@ -459,10 +459,10 @@
39
40 <p>
41 Above, bash first expands "${x##*.}". In the code, "$x" is the name of a file,
42 -and "${x##.*}" has the effect of stripping all text except that following the
43 +and "${x##*.}" has the effect of stripping all text except that following the
44 last period in the filename. Then, bash compares the resultant string against
45 -the values listed to the left of the ")"s. In this case, "${x##.*}" gets
46 -compared against "gz", then "bz2" and finally "*". If "${x##.*}" matches any of
47 +the values listed to the left of the ")"s. In this case, "${x##*.}" gets
48 +compared against "gz", then "bz2" and finally "*". If "${x##*.}" matches any of
49 these strings or patterns, the lines immediately following the ")" are executed,
50 up until the ";;", at which point bash continues executing lines after the
51 terminating "esac". If no patterns or strings are matched, no lines of code are
52
53
54
55 --
56 gentoo-doc-cvs@g.o mailing list