dylan

Results 130 comments of dylan

Bash is slow at file IO and it doesn't handle binary data very well. I'm sure it can be optimized but I have some doubts as to whether or not...

`cat` handles binary data correctly iirc, `bash` doesn't. What causes a larger problem is that `bash` handles binary data and null bytes differently depending on which version you're using (*In...

Are you able to also add a method in the example of undoing the redirection?

LGTM otherwise. :+1:

Will do, cheers!

There's all of the arithmetic operators: http://tldp.org/LDP/abs/html/ops.html (*which is what I thought you meant*).

Does bash have `set` operations? Edit: I see what you mean now. I don't think this is possible in pure `bash` but I'll work on it.

Great catch. This passes your above tests: ```sh dirname() { # Usage: dirname "path" dir=${1%%/} [[ $dir == */* ]] || dir=. printf '%s\n' "${dir%/*}" } ``` I'll keep digging...

I can't reproduce an output in where they differ now. :+1:

Working on a fix. Great catch.