Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Alias call in function fails...



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
phone. (03) 9429 9234
int.     +61 3 9429 9234
mob. +61 419 893 306

|\/\/\/|
|      |
| (
o)(o)
C      _)
| ,___|
|   /

My favourite palindrome is:
“Satan oscillate my metallic sonatas

<<< MSG ENDS >>>



Messages sorted by: Reverse Date, Date, Thread, Author