diff options
Diffstat (limited to 'libs/core.bash.in')
-rw-r--r-- | libs/core.bash.in | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/libs/core.bash.in b/libs/core.bash.in index 0b9648a..a7e7793 100644 --- a/libs/core.bash.in +++ b/libs/core.bash.in @@ -17,12 +17,6 @@ # eselect; if not, write to the Free Software Foundation, Inc., 59 Temple # Place, Suite 330, Boston, MA 02111-1307 USA -# sed PUBLIC -# GNU sed wrapper (real path to GNU sed determined by configure) -sed() { - %SED% "$@" -} - # die [-q] "Message" PUBLIC # Display "Message" as an error. If -q is not provided, gives a stacktrace. die() { @@ -119,4 +113,19 @@ eval() { die "Don't use eval. Find another way." } +# GNU sed wrapper (real path to GNU sed determined by configure) +sed() { + %SED% "$@" +} + +# basename wrapper +basename() { + echo ${1##*/} +} + +# dirname wrapper +dirname() { + echo ${1%/*} +} + # vim: set sw=4 et sts=4 tw=80 : |