fork/fish-shell

git clone https://git.julia.blue/fork/fish-shell

Fabian HomborgRessurect a couple of test functions04bc16530

master
600 B11 linesraw
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
10    od -b | sed -e 's/  */ /g' -e 's/  *$//'
11end