mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-12 13:08:49 +00:00
fix several build warnings
This fixes all but one of the warnings documented in issue #2685. The sole remaining warning is from the string split '' abc example in doc_src/string.txt. That example results in the man page displaying string split {} abc I leave it to someone else to fix that problem (I'll open an issue specifically for it since it took some effort to track down the source of the warning). Resolves issue #2685.
This commit is contained in:
parent
7c4f553acc
commit
b88e31b3f1
4 changed files with 12 additions and 5 deletions
|
@ -37,6 +37,9 @@ Building the documentation requires Doxygen 1.8.7 or newer.
|
||||||
|
|
||||||
### Xcode Build and Install
|
### Xcode Build and Install
|
||||||
|
|
||||||
|
autoconf
|
||||||
|
./configure
|
||||||
|
make lexicon_filter
|
||||||
xcodebuild install
|
xcodebuild install
|
||||||
sudo ditto /tmp/fish.dst /
|
sudo ditto /tmp/fish.dst /
|
||||||
|
|
||||||
|
|
|
@ -60,7 +60,7 @@ This file has been imported from the printf in GNU Coreutils version 6.9. If you
|
||||||
\subsection printf-example Example
|
\subsection printf-example Example
|
||||||
|
|
||||||
\fish
|
\fish
|
||||||
printf '%s\t%s\n' flounder fish
|
printf '\%s\\t\%s\n' flounder fish
|
||||||
\endfish
|
\endfish
|
||||||
Will print "flounder fish" (separated with a tab character), followed by a newline character. This is useful for writing completions, as fish expects completion scripts to output the option followed by the description, separated with a tab character.
|
Will print "flounder fish" (separated with a tab character), followed by a newline character. This is useful for writing completions, as fish expects completion scripts to output the option followed by the description, separated with a tab character.
|
||||||
|
|
||||||
|
|
|
@ -110,7 +110,7 @@ string trim --right --chars=yz xyzzy zany
|
||||||
\endfish
|
\endfish
|
||||||
|
|
||||||
\fish
|
\fish
|
||||||
echo \\x07 | string escape
|
echo \x07 | string escape
|
||||||
# Output:
|
# Output:
|
||||||
# \\cg
|
# \\cg
|
||||||
\endfish
|
\endfish
|
||||||
|
@ -193,7 +193,7 @@ string replace -r '(\\w+)\\s+(\\w+)' '$2 $1 $$' 'left right'
|
||||||
# Output:
|
# Output:
|
||||||
# right left $
|
# right left $
|
||||||
|
|
||||||
string replace -r '\s*newline\s*' '\n' 'put a newline here'
|
string replace -r '\\s*newline\\s*' '\n' 'put a newline here'
|
||||||
# Output:
|
# Output:
|
||||||
# put a
|
# put a
|
||||||
# here
|
# here
|
||||||
|
|
|
@ -475,7 +475,9 @@ x
|
||||||
#.
|
#.
|
||||||
# Mark up sesitive character entities.
|
# Mark up sesitive character entities.
|
||||||
#.
|
#.
|
||||||
:entities
|
# We comment out this target because it isn't referenced and if we don't we
|
||||||
|
# get warnings about "unused label 'entities'".
|
||||||
|
#:entities
|
||||||
s/</\</g
|
s/</\</g
|
||||||
s/>/\>/g
|
s/>/\>/g
|
||||||
s/((d))/@/g
|
s/((d))/@/g
|
||||||
|
@ -575,7 +577,9 @@ s/\($[$]*\)\([A-Za-z_0-9][A-Za-z_0-9]*\)/@vars{@optr{\1}\2}/g
|
||||||
# Files
|
# Files
|
||||||
s/\([^@]\)\([A-Za-z0-9_-][A-Za-z0-9_-]*\.[a-z0-9*][a-z0-9*]*\)/\1@fsfo{\2}/g
|
s/\([^@]\)\([A-Za-z0-9_-][A-Za-z0-9_-]*\.[a-z0-9*][a-z0-9*]*\)/\1@fsfo{\2}/g
|
||||||
#.
|
#.
|
||||||
:commands
|
# We comment out this target because it isn't referenced and if we don't we
|
||||||
|
# get warnings about "unused label 'commands'".
|
||||||
|
#:commands
|
||||||
#.
|
#.
|
||||||
#### This section is built in the Makefile. Just some formatting examples. #####
|
#### This section is built in the Makefile. Just some formatting examples. #####
|
||||||
#.
|
#.
|
||||||
|
|
Loading…
Reference in a new issue