Johannes Altmanninger 55bc6a27c6 Make prompts forward compatible with fish 3.1.2 by passing locally exported variable
Commit 5d135d555 (prompts: fix pipestatus for jobs prefixed with "not")
introduced a backwards compatibility hack about adding an optional argument
to __fish_print_pipestatus. This hack would break downgrading to fish 3.1.2
if the user copied the new prompt to their config - they would get a backtrace
on every prompt which is arguably worse than the patch's minor improvement.

This does away with the error trace - old fish just won't show the fancy
new pipestatus on `not true`.

Implemented by passing the last $status as the poor man's kwarg, which works
since 3.1.0 (9b86d5dd1 Export all local exported variables in a new scope).

The prompts don't work with fish 3.0.0 or older; downgrading does not seem
too important in general but I think this patch is an okay simplification.
2020-09-05 09:58:55 +02:00
..
2020-05-28 17:41:01 +02:00
2019-05-05 12:09:25 +02:00
2019-05-05 12:09:25 +02:00
2019-05-05 12:09:25 +02:00
2020-02-17 14:14:05 +01:00
2019-05-05 12:09:25 +02:00
2019-05-05 12:09:25 +02:00
2020-04-21 21:11:26 +02:00
2020-01-24 19:05:08 +01:00
2018-05-12 13:48:32 +02:00
2020-07-27 17:19:44 +02:00
2017-10-01 01:11:17 -07:00
2016-11-27 21:27:22 -08:00
2020-08-07 21:06:16 +02:00
2016-11-27 21:27:22 -08:00
2016-11-27 21:27:22 -08:00
2020-07-12 14:18:42 -05:00
2019-02-14 10:57:38 +01:00
2020-07-21 16:59:05 +02:00
2020-04-26 14:39:15 +02:00
2017-04-05 15:31:13 -07:00