mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-17 08:01:14 -03:00
The __fish_data_with_file wrapper was born out of a desire to simplify handling of file paths that may or may not be embedded into the fish binary. Since95aeb16ca2(Remove embed-data feature flag, 2025-11-20) this is no longer needed since almost everything is embedded unconditionally. The exception is man pages (seea1baf97f54(Do not embed man pages in CMake builds, 2025-11-20)), but they use __fish_data_with_directory.
21 lines
551 B
Fish
21 lines
551 B
Fish
# RUN: %fish %s
|
|
|
|
# REQUIRES: command -v sphinx-build
|
|
# REQUIRES: command -v man
|
|
# REQUIRES: test "$FISH_BUILD_DOCS" != "0"
|
|
|
|
# Override the test-override again.
|
|
status get-file functions/__fish_print_help.fish | source
|
|
|
|
set -l deroff col -b -p -x
|
|
|
|
set -lx MANWIDTH 80
|
|
man abbr | $deroff | head -n4
|
|
# CHECK: ABBR(1) {{ *}} fish-shell {{ *}} ABBR(1)
|
|
# CHECK: NAME
|
|
# CHECK: abbr - manage fish abbreviations
|
|
man : | $deroff | head -n4
|
|
# CHECK: TRUE(1) {{ *}} fish-shell {{ *}} TRUE(1)
|
|
# CHECK: NAME
|
|
# CHECK: true - return a successful result
|