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

Re: alias with a parameter



On Mon, 5 Apr 2021 18:16:45 -0600
lb@xxxxxxxxxx wrote:

> On 05 Apr 2021, at 16:55, dukeofpurl@xxxxxxx wrote:
> > em() { emacs $1 -geometry "56x23" }
>
> > such that I can pass a to `em' and bingo-bango I'm off programming
> > some C code. NO joy!
>
> Do you get an error?
>
> That function works perfectly fine on my system (not that I use
> emacs, and had to remember how to exit emacs) but no issues.

No error! It simply won't load the filename I pass to the zsh function.

`--> uname -a
Linux antixbox 4.9.235-antix.1-amd64-smp #1 SMP PREEMPT Mon Sep 14 19:26:52 EEST 2020 x86_64 GNU/Linux

`--> em ./hello.c

brings up an empty emacs editor.

Duke
Turner Valley, Alberta, Canada




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