On Tue, Feb 14, 2023, 8:58 PM Dale R. Worley <wor...@alum.mit.edu> wrote:

> >> Looking at the manual page, it says
> >>
> >>     ALIASES
> >>        Aliases  allow a string to be substituted for a word when it is
> used as
> >>        the first word of a simple command.
>
> Martin suggested (but IIUC didn't sent to this list):
> > "Beginning of a simple command" should probably be replaced by something
> > more along the lines of "beginning of any command that does not start
> with
> > a keyword (such as "while", "if", "case", etc) or assignment.
>
> Though I think by "keyword" he means "reserved word".
>

i mix my maybe again-fail-in-place ( topic ) std

root@localhost:~# alias if='if ' mid='[[ 1 ]] ' mid2='; then ' c1='printf
ye\\n ' end='; fi '
root@localhost:~# if mid mid2 c1 end
ye
root@localhost:~#

Dale
>
>

Reply via email to