fork/fish-shell
git clone https://git.julia.blue/fork/fish-shell
04bc16530
master
1# This is needed because GNU and BSD implementations of `od` differ in the whitespace they emit. 2# In the past we used the `xxd` command which doesn't suffer from such idiosyncrasies but it isn't 3# available on some systems unless you install the Vim editor. Whereas `od` is pretty much 4# universally available. See issue #3797. 5# 6# We use the lowest common denominator format, `-b`, because it should work in all implementations. 7# I wish we could use the `-t` flag but it isn't available in every OS we're likely to run on. 8# 9function display_bytes 10od -b| sed -e's/ */ /g' -e's/ *$//' 11end