[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [feature request] Add ".sh" or ".bash" extension to tmpfile generate
From: |
Martin D Kealey |
Subject: |
Re: [feature request] Add ".sh" or ".bash" extension to tmpfile generated by `fc` |
Date: |
Fri, 20 Sep 2024 20:22:31 +1000 |
In 2024 an editor having such a simplistic approach counts as a bug.
But perhaps adding a variable would allow anyone to nominate their own
favourite, such as as BASHFC_TMPNAM=/tmp/bash-fc.$$.XXXXXX.sh
Alternatively, perhaps an extra line could be inserted at the start of the
b file, like « #!fc-edit/bash »
On Fri, 20 Sep 2024, 16:41 shynur ., <one.last.kiss@outlook.com> wrote:
> `fc` will create a temporary file named something
> like "bash-fc.Esf9by", which seldom benefits from
> editors that use *suffixes* to infer what syntax
> highlighting should be enabled.
>
> (This improvement may not only apply to `fc`.)
>
> --
> shynur
>
Re: [feature request] Add ".sh" or ".bash" extension to tmpfile generated by `fc`,
Martin D Kealey <=
Re: [feature request] Add ".sh" or ".bash" extension to tmpfile generated by `fc`, Chet Ramey, 2024/09/20
Re: [feature request] Add ".sh" or ".bash" extension to tmpfile generated by `fc`, shynur ., 2024/09/20