Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 129846 - Small mistake in "Bash by example, Part 2" document
Summary: Small mistake in "Bash by example, Part 2" document
Status: RESOLVED FIXED
Alias: None
Product: [OLD] Docs on www.gentoo.org
Classification: Unclassified
Component: Other documents (show other bugs)
Hardware: All All
: Normal normal (vote)
Assignee: Xavier Neys (RETIRED)
URL: http://www.gentoo.org/doc/en/articles...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-04-13 11:26 UTC by Pablo Antonio
Modified: 2006-04-25 05:58 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Pablo Antonio 2006-04-13 11:26:45 UTC
There's a small mistake in one of the explanations of a specific example; more precisely, it says:
In the code, "$x" is the name of a file, and "${x##.*}" has the effect of stripping all text except that following the last period in the filename.

Where it should say:
In the code, "$x" is the name of a file, and "${x##*.}" has the effect of stripping all text except that following the last period in the filename.

(Notice that the only change is the wildcard in "${x##.*}". The script itself does not require any corrections.)
Comment 1 Pablo Antonio 2006-04-13 11:37:17 UTC
Actually, I realized the same mistake occurs two more times in the same paragraph. It's not that it's a vital error, but it surely creates some surprise in newbies' minds.
Comment 2 Xavier Neys (RETIRED) gentoo-dev 2006-04-25 05:58:30 UTC
Fixed. Thanks for reporting.