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 | fn_dirname() | 5 | fn_dirname() |
| 6 | { | 6 | { |
| 7 | case $1 in | 7 | case $1 in |
| 8 | */*) echo "$1" | sed -e 's,/[^/]*,,';; | 8 | */*) echo ${1%/*};; |
| 9 | *) echo '.' | 9 | *) echo '.' |
| 10 | esac | 10 | esac |
| 11 | } | 11 | } |