[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Command execution by creating file.
From: |
Martin D Kealey |
Subject: |
Re: Command execution by creating file. |
Date: |
Wed, 21 Jun 2023 13:36:05 +1000 |
The assertion "should just print the name of [the] file" is mistaken.
You seem to have conflated autocompletion (which occurs while typing,
usually in response to the TAB key, which is prior to parsing a command
which in turn is prior to invoking it) with filename generation (which
occurs as a late phase of command invocation).
A command consists of a number of words, any of which can be generated by
command completion; the first word is not special in this respect.
(What would be surprising is if an alias were expanded after filename
generation. I suspect your minimal proof case is incomplete.)
-Martin