fish-shell/src/builtins
Johannes Altmanninger 00875d0f83 Allow builtin source to read from non-regular files
Commit a91bf6d88 (builtin.c: builtin_source now checks that its argument is
a file., 2005-12-16) fixed an infinite loop for commands like "source /"
where the argument is a directory.

It did so by erroring out early unless the filename argument is a regular file.
This is too restrictive; it disallows reading from special files like /dev/null
and fifos.
Today we get a sensible error without this check, so remove it.
2024-10-13 10:44:38 +02:00
..
string Update code and Cargo.toml for recent pcre2-utf32 changes 2024-09-22 17:05:14 -07:00
tests Remove redundant test setup 2024-10-12 13:32:19 +02:00
abbr.rs Update code and Cargo.toml for recent pcre2-utf32 changes 2024-09-22 17:05:14 -07:00
argparse.rs Remove wcstringutil::split_string() 2024-05-21 12:54:52 -05:00
bg.rs Move fish-rust to project root 2024-01-13 03:58:33 +01:00
bind.rs Remove a few uses of unwrap 2024-05-01 12:58:29 +02:00
block.rs Convert Block::event_blocks to a bool 2024-06-01 13:01:40 -05:00
builtin.rs Rewrite wgetopt.rs to Rustier syntax and naming 2024-04-17 11:26:51 -07:00
cd.rs cd: open directory with O_SEARCH or O_PATH, when the platform supports it 2024-05-11 11:12:29 -07:00
command.rs Rewrite wgetopt.rs to Rustier syntax and naming 2024-04-17 11:26:51 -07:00
commandline.rs Add commandline --showing-suggestion 2024-07-07 22:34:36 -05:00
complete.rs Remove unescape_string_in_place 2024-06-06 17:11:25 +02:00
contains.rs Rewrite wgetopt.rs to Rustier syntax and naming 2024-04-17 11:26:51 -07:00
count.rs Move fish-rust to project root 2024-01-13 03:58:33 +01:00
disown.rs Remove using statements already imported by preludes 2024-02-28 09:41:51 -06:00
echo.rs Rewrite wgetopt.rs to Rustier syntax and naming 2024-04-17 11:26:51 -07:00
emit.rs Remove widestring-suffix uses 2024-01-13 08:52:54 +01:00
eval.rs Remove parser library_data_pod_t ffi workaround 2024-06-02 20:27:44 -05:00
exit.rs Remove parser library_data_pod_t ffi workaround 2024-06-02 20:27:44 -05:00
fg.rs Make import style less noisy 2024-09-01 14:05:48 +02:00
function.rs Use NonZero types for 1-based line numbers 2024-07-07 20:58:09 -05:00
functions.rs Thread variables into autoload_names 2024-06-23 16:39:39 -07:00
history.rs Rewrite wgetopt.rs to Rustier syntax and naming 2024-04-17 11:26:51 -07:00
jobs.rs Clean up fish-printf in preparation for publishing 2024-09-21 17:52:11 -07:00
math.rs Fix formatting 2024-06-23 18:01:31 -05:00
mod.rs Rewrite wgetopt.rs to Rustier syntax and naming 2024-04-17 11:26:51 -07:00
path.rs path: Remove weird order hack 2024-10-04 16:48:40 +02:00
printf.rs Clean up fish-printf in preparation for publishing 2024-09-21 17:52:11 -07:00
pwd.rs Rewrite wgetopt.rs to Rustier syntax and naming 2024-04-17 11:26:51 -07:00
random.rs Rewrite wgetopt.rs to Rustier syntax and naming 2024-04-17 11:26:51 -07:00
read.rs Tweak the allowed clippy set and fix some 2024-06-30 11:38:15 -07:00
realpath.rs Rewrite wgetopt.rs to Rustier syntax and naming 2024-04-17 11:26:51 -07:00
return.rs Remove parser library_data_pod_t ffi workaround 2024-06-02 20:27:44 -05:00
set_color.rs Rewrite wgetopt.rs to Rustier syntax and naming 2024-04-17 11:26:51 -07:00
set.rs Make EnvStackSetResult use Rust naming conventions 2024-06-15 15:57:28 -07:00
shared.rs Remove parser library_data_pod_t ffi workaround 2024-06-02 20:27:44 -05:00
source.rs Allow builtin source to read from non-regular files 2024-10-13 10:44:38 +02:00
status.rs Use NonZero types for 1-based line numbers 2024-07-07 20:58:09 -05:00
string.rs Remove a few uses of unwrap 2024-05-01 12:58:29 +02:00
test.rs Remove a few uses of unwrap 2024-05-01 12:58:29 +02:00
type.rs Rewrite wgetopt.rs to Rustier syntax and naming 2024-04-17 11:26:51 -07:00
ulimit.rs Fix a clippy in ulimit 2024-06-19 10:47:46 -07:00
wait.rs Fix ctrl-c being ignored during builtin wait 2024-09-01 14:08:01 +02:00