zsh-workers
 help / color / mirror / code / Atom feed
11f1c1a506ddd9ebf016e4fd08290a2e65d87845 blob 373 bytes (raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
 
## vim:ft=zsh

# VCS_INFO_hexdump FILENAME BYTECOUNT
#
# Return in $REPLY a hexadecimal representation (lowercase, no whitespace)
# of the first BYTECOUNT bytes of FILENAME.

if [[ -r $1 ]]; then
  setopt localoptions nomultibyte extendedglob
  local val
  read -k $2 -u 0 val <$1
  REPLY=${(Lj::)${(l:2::0:)${(@s//)val}//(#m)*/$(( [##16] ##$MATCH ))}}
else
  return 1
fi

debug log:

solving 11f1c1a ...
found 11f1c1a in https://git.vuxu.org/mirror/zsh/

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).