Files
fish-shell/share/functions
Saeed M Rad 45bb8f535b funced: pretend copied functions are defined interactively
After #9542, the format for `functions -Dv` was changed for copied
functions.

```diff
-stdin
-n/a
+[path to copy location]
+[path to original definition]
 [and a few more lines]
```

Some components were (and perhaps are) still expecting the old format,
however. After a search, it looks like `funced` and `fish_config` are
the only two functions using `functions -D` and `functions -Dv` in this
repo (none are using `type -p`).

As noted in issue #11614, `funced` currently edits the file which
copies the given copied function. Another option was to make `funced`
edit the file which originally defined the function. Since the copied
function would not have been updated either way, I modified `funced` so
it would pretend that the copied function was defined interactively,
like it was before.

I did not modify `fish_config`, since it was only used for preset
prompts in the web config, none of which used `functions --copy`.
(Moreover, I believe it would have behaved correctly, since the preset
would not have had to define the function, only copy it.)

Fixes issue #11614
2025-08-07 10:19:42 +00:00
..
2019-05-05 12:09:25 +02:00
2025-03-01 07:55:53 +01:00
2023-04-26 19:38:10 +02:00
2019-05-05 12:09:25 +02:00
2020-11-22 14:39:48 +01:00
2024-06-24 14:30:37 -05:00
2022-06-08 21:23:43 +02:00
2025-06-23 14:18:15 +02:00
2022-08-02 00:42:37 -07:00
2022-01-27 16:21:22 -08:00
2025-04-11 17:29:22 +02:00
2022-01-27 16:21:22 -08:00
2016-11-27 21:27:22 -08:00
2025-04-11 15:11:22 +02:00
2021-12-02 02:22:40 -08:00
2023-12-25 18:46:23 +01:00
2017-04-05 15:31:13 -07:00
2023-06-01 18:20:19 +02:00
2022-01-27 16:21:22 -08:00
2022-04-23 16:35:52 -07:00