Files
fish-shell/doc_src
Fabian Boehm 8d71eef1da Add feature flag to turn off %self (#10262)
This is the last remnant of the old percent expansion.

It has the downsides of it, in that it is annoying to combine with
anything:

```fish
echo %self/foo
```

prints "%self/foo", not fish's pid.

We have introduced $fish_pid in 3.0, which is much easier to use -
just like a variable, because it is one.

If you need backwards-compatibility for < 3.0, you can use the
following shim:

```fish
set -q fish_pid
or set -g fish_pid %self
```

So we introduce a feature-flag called "remove-percent-self" to turn it
off.

"%self" will simply not be special, e.g. `echo %self` will print
"%self".
2024-02-06 22:13:16 +01:00
..
2023-07-09 14:11:01 +08:00
2024-01-06 22:24:55 +08:00
2022-09-17 21:31:06 +08:00
2023-05-25 17:46:25 +02:00
2023-06-01 18:20:19 +02:00
2023-08-23 23:08:56 +02:00
2024-01-30 18:18:55 +08:00
2024-02-03 11:12:11 +01:00
2023-04-28 17:11:23 +02:00