Use ${parameter%word} construct to fix fn_dirname in configure script. Bonus: on less fork.
Unified · Split
| @@ -5,7 +5,7 @@ · 4 unmodified lines | ||
| 5 | 5 | fn_dirname() |
| 6 | 6 | { |
| 7 | 7 | case $1 in |
| 8 | − */*) echo "$1" | sed -e 's,/[^/]*,,';; | |
| 8 | + */*) echo ${1%/*};; | |
| 9 | 9 | *) echo '.' |
| 10 | 10 | esac |
| 11 | 11 | } |