sh -c 'env HOME=$(mktemp -d) fish'
) ?์ค์น๋ ๋ฌผ๊ณ ๊ธฐ ๋ฒ์ ( fish --version
) :
2.5.0
์ฌ์ฉ ๋ OS / ํฐ๋ฏธ๋ :
์์น ๋ฆฌ๋ ์ค. URxvt
ํ๋์ ํผ์ฌ ์ ์ธ์
์ ์ฌ์ฉํ ํ -q
์ต์
์ ์ฌ์ฉํ ๋๋ง๋ค command
๋นํธ์ธ ์คํจ ์ํ๊ฐ๋ฉ๋๋ค. ์ด๊ฒ์ ๋ช
๋ น ์ค ( command -sq
๋ฅผ ํธ์ถ ํจ)์ ์ทจ์ํ๋ ๊ฒ์ ์ ์ ์์ต๋๋ค.
ogondza<strong i="24">@arch</strong> ~ $ date
2017-02-14 15:01:20
# Up and Ctrl + C
ogondza<strong i="25">@arch</strong> ~ $ datecommand: Unknown option โ-sqโ
/usr/share/fish/functions/__fish_cancel_commandline.fish (line 12): if command -sq tput
^
in function โ__fish_cancel_commandlineโ
called on standard input
command -- run a program
Synopsis
command [OPTIONS] COMMANDNAME [ARGS...]
Description
...
Additionally passing a -q or --quiet option prevents any paths from
being printed, like the type -q, for testing only the exit status.
...
๋ฌผ๊ณ ๊ธฐ๊ฐ์ด ์ํ๊ฐ๋๋ฉด ๋ค์์ ์ฌ์ฉํ์ฌ ์ฝ๊ฒ ์ฌํ ํ ์ ์์ต๋๋ค.
ogondza<strong i="29">@arch</strong> ~ $ type command
command is a builtin
ogondza<strong i="30">@arch</strong> ~ $ command -s test
/usr/bin/test
ogondza<strong i="31">@arch</strong> ~ $ command -s -q test
command: Unknown option โ-qโ
...
๋ฌธ์ ๋ ์๋ก์ด ๋ฌผ๊ณ ๊ธฐ ์ธ์ ์์ ๋ํ๋์ง ์์ผ๋ฉฐ์ด ๋์์ ์ ๋ฐํ๋ ์์ธ์ ์ ์ ์์ต๋๋ค. ์ด๊ฒ์ ์ด๋ป๊ฒ ๋ ๋๋ฒ๊น ํ ์ ์์ต๋๊น?
์ด ์ต์ ์ # 3591์ ํตํด ์ถ๊ฐ๋์์ผ๋ฉฐ 2.5.0 ๋ฆด๋ฆฌ์ค์ ํฌํจ๋์ด ์์ต๋๋ค.
๊ฐ์ฅ ๊ฐ๋ฅ์ฑ์ด ๋์ ์์ธ์ ์ต์ ์คํฌ๋ฆฝํธ์์๋ก๋๋๋ ์ค๋๋ ๋ฌผ๊ณ ๊ธฐ๋ฅผ ์คํํ๊ณ ์๊ธฐ ๋๋ฌธ์
๋๋ค. echo $FISH_VERSION
์ด๋ฅผ ํ์ธํด์ผํฉ๋๋ค. ํด๊ฒฐ์ฑ
์ ๊ทธ๋ง๋๋ ๊ฒ์
๋๋ค.
ํธ์ง : ๋ด ๋ง์ ์ด์ ์ธ์คํด์ค๋ฅผ ์ข ๋ฃํ๊ณ ์ ์ธ์คํด์ค๋ฅผ ์์ํ๋ฉด์ด ๋ฌธ์ ๊ฐ ํด๊ฒฐ๋์ด์ผํ๋ค๋ ๊ฒ์ ๋๋ค. ์๋ฅผ ๋ค์ด ์ฌ๋ถํ ํ๋ฉด ์์ ํ ์ฌ๋ผ์ง๋๋ค.
ogondza<strong i="5">@arch</strong> ~ $ fish -version
fish, version 2.5.0
ogondza<strong i="6">@arch</strong> ~ $ echo $FISH_VERSION
2.4.0
๊ทธ๊ฒ ๋ฌธ์ ์ธ ๊ฒ ๊ฐ์ต๋๋ค. ๊ฐ์ฌ.
์์ฝ์ FAQ ๋๋ Wiki๋ก ์ด๋ํ๊ฒ ์ต๋๋ค.
์ด๊ฒ์ 2.4.0์์ 2.6.0์ผ๋ก ์
๊ทธ๋ ์ด๋ ํ ํ ๋๋ฅผ ๋ฌผ์์ต๋๋ค.