diff options
author | Andreas Gruenbacher <agruen@suse.de> | 2003-02-18 21:07:15 +0000 |
---|---|---|
committer | Andreas Gruenbacher <agruen@suse.de> | 2003-02-18 21:07:15 +0000 |
commit | 188944266b6c9e13f900a82c69eb943f877e05e7 (patch) | |
tree | 0c0a07b5ab7b2766b680987a413d31454282f14f | |
parent | d631bf76adcd02c3a783ecbec5f221cbb3dd4b98 (diff) | |
download | quilt-188944266b6c9e13f900a82c69eb943f877e05e7.tar.gz |
*** empty log message ***
-rw-r--r-- | scripts/patchfns.in | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/patchfns.in b/scripts/patchfns.in index 1148c97..dd8b821 100644 --- a/scripts/patchfns.in +++ b/scripts/patchfns.in @@ -43,13 +43,15 @@ quote_re() basename() { - local path="${1%%/}" + local path="${1//\/\//}" + path="${path%%/}" echo "${path##*/}" } dirname() { - local path="${1%%/}" + local path="${1//\/\//}" + path="${path%%/}" local basename="${path##*/}" path="${path:0:${#path}-${#basename}}" [ x"$path" != x"/" ] && path="${path%/}" |