escape the quoting hell, use a function
tested on Interix
This commit is contained in:
parent
1d6ae7d16b
commit
9cbff5af67
@ -27,8 +27,11 @@ alias la='l -a'
|
||||
alias ll='l -l'
|
||||
alias lo='la -lo'
|
||||
whence -p rot13 >/dev/null || alias rot13='tr [A-Za-z] [N-ZA-Mn-za-m]'
|
||||
whence -p hd >/dev/null || alias hd="hexdump -e '"'"%08.8_ax " 8/1 '\
|
||||
'"%02X " " - " 8/1 "%02X "'"' -e '\" |\" \"%_p\"' -e '\"|\\n\"'"
|
||||
whence -p hd >/dev/null || function hd
|
||||
{
|
||||
hexdump -e '"%08.8_ax " 8/1 "%02X " " - " 8/1 "%02X "' \
|
||||
-e '" |" "%_p"' -e '"|\n"' "$@"
|
||||
}
|
||||
|
||||
# strip comments (and leading/trailing whitespace if IFS is set) from
|
||||
# any file(s) given as argument, or stdin if none, and spew to stdout
|
||||
@ -42,4 +45,4 @@ function Lstripcom
|
||||
|
||||
# place customisations between this line and the ": RCSID" line below
|
||||
|
||||
: $MirOS: src/bin/mksh/dot.mkshrc,v 1.9 2007/04/16 18:54:37 tg Exp $
|
||||
: $MirOS: src/bin/mksh/dot.mkshrc,v 1.10 2007/04/17 20:00:37 tg Exp $
|
||||
|
Loading…
x
Reference in New Issue
Block a user