escape the quoting hell, use a function
tested on Interix
This commit is contained in:
@ -27,8 +27,11 @@ alias la='l -a'
|
|||||||
alias ll='l -l'
|
alias ll='l -l'
|
||||||
alias lo='la -lo'
|
alias lo='la -lo'
|
||||||
whence -p rot13 >/dev/null || alias rot13='tr [A-Za-z] [N-ZA-Mn-za-m]'
|
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 '\
|
whence -p hd >/dev/null || function hd
|
||||||
'"%02X " " - " 8/1 "%02X "'"' -e '\" |\" \"%_p\"' -e '\"|\\n\"'"
|
{
|
||||||
|
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
|
# 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
|
# 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
|
# 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 $
|
||||||
|
Reference in New Issue
Block a user