This website requires JavaScript.
Explore
Help
Register
Sign In
github-mirror
/
fish-shell
Watch
2
Star
0
Fork
0
You've already forked fish-shell
mirror of
https://github.com/fish-shell/fish-shell.git
synced
2024-12-01 23:24:21 +08:00
Code
Issues
Actions
2
Packages
Projects
Releases
Wiki
Activity
2ecbdb9ae7
fish-shell
/
tests
/
checks
/
features-percent-self1.fish
5 lines
73 B
Fish
Raw
Normal View
History
Unescape
Escape
tests: filter control sequences only when interactive This demonstrates that we only write control sequences when interactive.
2024-04-12 18:19:32 +08:00
#RUN: %fish --features=remove-percent-self %s
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-07 05:13:16 +08:00
echo
%self
# CHECK: %self
Reference in New Issue
Copy Permalink