zsh-users
 help / color / mirror / code / Atom feed
* Alias call in function fails...
@ 2020-06-22 12:49 Frank Gallacher
  2020-06-22 23:23 ` Mikael Magnusson
  0 siblings, 1 reply; 24+ messages in thread
From: Frank Gallacher @ 2020-06-22 12:49 UTC (permalink / raw)
  To: zsh-users


[-- Attachment #1.1: Type: text/plain, Size: 1365 bytes --]

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 >>>

[-- Attachment #1.2: Type: text/html, Size: 12910 bytes --]

[-- Attachment #2: image001.png --]
[-- Type: image/png, Size: 904 bytes --]

^ permalink raw reply	[flat|nested] 24+ messages in thread

end of thread, other threads:[~2020-06-30  4:03 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-22 12:49 Alias call in function fails Frank Gallacher
2020-06-22 23:23 ` Mikael Magnusson
2020-06-23  8:37   ` Andreas Kusalananda Kähäri
2020-06-23  9:14     ` Peter Stephenson
2020-06-23  9:55     ` Mikael Magnusson
2020-06-23 11:28       ` Andreas Kusalananda Kähäri
2020-06-23 12:04         ` Daniel Shahaf
2020-06-23 12:46           ` Perry Smith
2020-06-23 13:10             ` Kamil Dudka
2020-06-23 16:03               ` Bart Schaefer
2020-06-23 21:14                 ` Perry Smith
2020-06-23 22:54                   ` Daniel Shahaf
2020-06-23 23:29                     ` Perry Smith
2020-06-23 23:43                       ` Bart Schaefer
2020-06-24  0:47                         ` Perry Smith
2020-06-24  9:28                           ` Daniel Shahaf
2020-06-24 12:55                             ` Perry Smith
2020-06-23 23:40                     ` Bart Schaefer
2020-06-24 10:10                       ` Daniel Shahaf
2020-06-24 10:47                         ` Daniel Shahaf
2020-06-24  2:58                   ` Grant Taylor
2020-06-29 16:24   ` Sebastian Gniazdowski
2020-06-29 16:55     ` Bart Schaefer
2020-06-30  4:02       ` Bart Schaefer

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).