Greetings,
I have a function:
dumpall () {
if [ $# -eq 0 ]
then
echo "dumpall: Usage 'dumpall {files}'"
else
for FILENAME in $*
do
if [ ! -e ${FILENAME} ]
then
echo "dumpall: ${FILENAME} does not exist"
else
echo -e "\033[31m:::::::: ${FILENAME} ::::::::\033[0m"
dumpit ${FILENAME}
fi
done
fi
}
Which calls an alias:
alias dumpit='hexdump -C -n 128'
It works fine in bash, but with zsh now I get:
:::::::: test.txt ::::::::
dumpall:11: command not found: dumpit
Am I doing something wrong???
TIA, will summarise
u
Frank C.Gallacher |
|\/\/\/| |
My favourite palindrome is: |
<<< MSG ENDS >>>