Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 280598 | Differences between
and this patch

Collapse All | Expand All

(-)libs/path-manipulation.bash.in (-2 / +8 lines)
Lines 14-22 Link Here
14
# You should have received a copy of the GNU General Public License along with
14
# You should have received a copy of the GNU General Public License along with
15
# eselect.  If not, see <http://www.gnu.org/licenses/>.
15
# eselect.  If not, see <http://www.gnu.org/licenses/>.
16
16
17
# basename wrapper
17
# basename function 
18
basename() {
18
basename() {
19
	echo "${1##*/}"
19
	pstr=${1}
20
21
	while [[ ${pstr:$(( ${#pstr} - 1 ))} == '/' ]]; do
22
		pstr=${pstr%/}
23
	done
24
25
	echo "${pstr##*/}"
20
}
26
}
21
27
22
# dirname wrapper
28
# dirname wrapper

Return to bug 280598