2017-08-05 04:33:47 +08:00
|
|
|
|
|
|
|
####################
|
|
|
|
# Comments in odd places don't cause problems
|
|
|
|
|
|
|
|
####################
|
|
|
|
# Escaped newlines
|
|
|
|
|
|
|
|
####################
|
|
|
|
# Simple function tests
|
|
|
|
|
|
|
|
####################
|
2019-04-14 01:04:44 +08:00
|
|
|
# Testing builtin status
|
2017-08-05 04:33:47 +08:00
|
|
|
|
|
|
|
####################
|
|
|
|
# Verify that we can turn stderr into stdout and then pipe it
|
|
|
|
|
|
|
|
####################
|
|
|
|
# Test that trailing ^ doesn't trigger redirection, see #1873
|
|
|
|
|
|
|
|
####################
|
|
|
|
# Verify that we can pipe something other than stdout
|
|
|
|
|
|
|
|
####################
|
|
|
|
# echo tests
|
|
|
|
|
|
|
|
####################
|
|
|
|
# Verify that pipes don't conflict with fd redirections
|
|
|
|
|
|
|
|
####################
|
|
|
|
# Make sure while loops don't run forever with no-exec (#1543)
|
|
|
|
|
2017-08-21 03:02:45 +08:00
|
|
|
####################
|
|
|
|
# For loops with read-only vars is an error (#4342)
|
2018-11-28 22:27:21 +08:00
|
|
|
fish: You cannot use read-only variable 'status' in a for loop
|
2017-08-21 03:02:45 +08:00
|
|
|
for status in a b c
|
|
|
|
^
|
|
|
|
|
2019-01-19 02:24:49 +08:00
|
|
|
####################
|
|
|
|
# That goes for non-electric ones as well (#5548)
|
|
|
|
fish: You cannot use read-only variable 'hostname' in a for loop
|
|
|
|
for hostname in a b c
|
|
|
|
^
|
|
|
|
|
2017-09-09 12:14:26 +08:00
|
|
|
####################
|
|
|
|
# For loop control vars available outside the for block
|
|
|
|
|
2017-08-05 04:33:47 +08:00
|
|
|
####################
|
|
|
|
# Comments allowed in between lines (#1987)
|
|
|
|
|
|
|
|
####################
|
|
|
|
# Backslashes are part of comments and do not join lines (#1255)
|
|
|
|
|
|
|
|
####################
|
|
|
|
# Verify $argv set correctly in sourced scripts (#139)
|