Logo
Explore Help
Sign In
h/fish-shell
1
Fork 0
You've already forked fish-shell
mirror of https://github.com/fish-shell/fish-shell.git synced 2026-05-15 22:51:13 -03:00
Code Issues Packages Projects Releases Wiki Activity
Files
26949fa865af468d3f86d528cd2e43925fe9d202
fish-shell/tests/checks/invocation.fish

9 lines
155 B
Fish
Raw Normal View History

set error code on failed command substitution to 255 instead of -1 the exit status ought to be in 0-255, e.g. exit -1
2020-01-17 15:08:14 +01:00
#RUN: %fish -C 'set -l fish %fish' %s
$fish -c "echo 1.2.3.4."
Port most of the invocation tests to littlecheck This is a bit weird sometimes, e.g. to test the return status (that fish actually *returns $status*), we use a #RUN line with %fish invoking %fish, so we can use the substitution. Still much nicer. The missing scripts are those that rely on config.
2019-06-25 20:47:28 +02:00
# CHECK: 1.2.3.4.
set error code on failed command substitution to 255 instead of -1 the exit status ought to be in 0-255, e.g. exit -1
2020-01-17 15:08:14 +01:00
PATH= $fish -c "echo (command a)" 2>/dev/null
echo $status
# CHECK: 255
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.3 Page: 72ms Template: 2ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API