It turns out that if I define "rm" as an abbreviation instead of an alias,
this problem goes away.
On Sun, Aug 20, 2017 at 5:11 PM, Mark Volkmann <r.mark.volkm...@gmail.com>
wrote:
> You are correct. I have this in my config.fish:
>
> alias rm 'rm -i'
>
> I definitely don't want to change that alias because it helps me to avoid
> accidentally deleting the wrong file by forcing me to think about it one
> more time. But of course it's annoying that funced asks me about a file
> that I probably shouldn't know about. Maybe a switch could be added to
> funced to tell it to use "rm -f" for removing the temporary so doing that
> is optional.
>
> On Sun, Aug 20, 2017 at 10:15 AM, Kurtis Rader <kra...@skepticism.us>
> wrote:
>
>> On Sun, Aug 20, 2017 at 4:49 AM, Mark Volkmann <r.mark.volkm...@gmail.com
>> > wrote:
>>>
>>> A related question:
>>> Why does funced ask this question on exit?
>>> "remove /var/folders/jc/q4_2lrkd3pn2sz1l_s8rf31w0000gn/T//fish.DjETf
>>> i/baz.fish?"
>>> Is that where it saves temporary (what I referred to as in-memory)
>>> functions?
>>> That isn't addressed in the help for funced.
>>> I'm not sure how my answer to that question affects the function.
>>>
>>
>> Technically funced is not asking that question; it's the `rm` command
>> that funced executes to remove the temporary file it created. The temporary
>> file is an implementation detail and thus not documented. Apparently you
>> have done something like `alias rm rm -i`. It might make sense to modify
>> `funced` to do `rm -f` to override the `-i` option. I don't like doing
>> that, however, because it also suppresses legitimate errors.
>>
>> --
>> Kurtis Rader
>> Caretaker of the exceptional canines Junior and Hank
>>
>
>
>
> --
> R. Mark Volkmann
> Object Computing, Inc.
>
--
R. Mark Volkmann
Object Computing, Inc.
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Fish-users mailing list
Fish-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fish-users