David Adam
2cb608358d
fish.spec/Debian packaging: update licensing details
2023-05-25 22:23:18 +08:00
David Adam
4e13b1b5d5
Licensing: note MIT licensing status of Dracula theme
2023-05-25 21:30:30 +08:00
David Adam
2fbee01e17
Licensing: update the OpenBSD license details
...
The strlcpy/wcslcpy function is long gone.
2023-05-25 21:06:48 +08:00
David Adam
7c059b1112
Licensing: drop the LGPL reference and text
...
The wcstok function is long gone.
2023-05-25 20:50:36 +08:00
Mahmoud Al-Qudsi
047da71e2e
Update Cirrus CI FreeBSD runner to 13.2-RELEASE
2023-05-23 12:17:25 -05:00
Fabian Boehm
ce34afa11c
cirrus: Turn off FreeBSD 12.3
...
These are often queueueueueueueued and we don't test older versions
for other OSen either.
2023-05-23 17:45:27 +02:00
Fabian Boehm
9897f4f18d
fileid: Just use unix::fs::metadataext
...
These should be the same, except without the "st_" prefix
2023-05-23 17:43:23 +02:00
Fabian Boehm
f2e5f02a8a
fileid: Use freebsd metadata
...
This is a terrible way of going about things,
and means we're currently broken on any unix that isn't specifically listed.
But at least it'll build and allow us to keep the FreeBSD CI running.
2023-05-23 17:37:48 +02:00
Fabian Boehm
8282ddcff2
faq: Update
...
Remove two that really aren't frequently asked and simplify the
history substitution thing, plus abbrs.
2023-05-23 16:57:53 +02:00
Fabian Boehm
80324c9d7f
docs: Fix link
2023-05-23 16:48:28 +02:00
Fabian Boehm
b1c06bbd2c
Put back extra licenses
...
This was erroneously removed in commit 03a6fb4a69
.
2023-05-23 16:47:32 +02:00
Wenhao Ho
201610151f
feat: sync the dracula official theme
...
Signed-off-by: Wenhao Ho <wh.ho@outlook.com>
2023-05-23 20:47:01 +08:00
ridiculousfish
21e31c9b59
Remove C++ builtin test implementation
...
Now that builtin test is in Rust, remove the C++ bits.
2023-05-21 11:50:24 -07:00
ridiculousfish
d0aba9d42c
Port builtin_test tests to Rust
...
fish_tests has a bunch of tests for the 'test' builtin. Port these to Rust.
2023-05-21 11:50:24 -07:00
ridiculousfish
cdb77a6176
Adopt the Rust test builtin
...
This switches the builtin test implementation from C++ to Rust
2023-05-21 11:50:24 -07:00
ridiculousfish
10a7de03e2
Implement builtin test in Rust
...
This implements (but does not yet adopt) builtin test in Rust.
2023-05-21 11:50:24 -07:00
ridiculousfish
a20985c738
Implement FileID in Rust
...
FileID tracks a File's identity, including its inode, device, and creation and
modification times.
2023-05-21 11:50:24 -07:00
Fabian Boehm
b435fc4539
docs: Add something on variables-as-commands
...
Specifically point towards the necessary splitting (as always,
separate ahead of time) and the keyword thing.
Fixes #9797
2023-05-21 10:13:54 +02:00
Fabian Boehm
aac30367bf
completions/systemctl: Add some missing commands
...
Fixes #9804
2023-05-21 10:02:26 +02:00
Fabian Boehm
8a9f57112c
Fix typo
...
See https://github.com/fish-shell/fish-site/pull/112
2023-05-18 17:52:51 +02:00
Fabian Boehm
a8d7d9689d
docs: Another pass over bind
2023-05-18 10:11:17 +02:00
Fabian Boehm
0c900f74d0
docs: Explain bind --mode in custom bindings
2023-05-18 09:40:03 +02:00
Thomas Klausner
67d1d80f94
When using curses, look for libterminfo as well. ( #9794 )
...
Supports NetBSD, where libtinfo isn't available but libterminfo is.
2023-05-16 15:02:11 -05:00
ridiculousfish
dec3976a1f
wcstoi: remove the consume_all / consumed_all machinery
...
Nothing sets these, so they can be removed. Also remove CharsLeft
for the same reason.
2023-05-14 18:38:24 -07:00
ridiculousfish
60d439ab22
Rationalize fish_wcstoi/d and friends
...
Historically fish has used the functions `fish_wcstol`, `fish_wcstoi`, and
`fish_wcstoul` (and some long long variants) for most integer conversions.
These have semantics that are deliberately different from the libc
functions, such as consuming trailing whitespace, and disallowing `-` in
unsigned versions.
fish has started to drift away from these semantics; some divergence from
C++ has crept in.
Rename the existing `fish_wcs*` functions in Rust to remove the fish
prefix, to express that they attempt to mirror libc semantics; then
introduce `fish_` wrappers which are ported from C++. Also fix some
miscellaneous bugs which have crept in, such as missing range checks.
2023-05-14 18:03:52 -07:00
Fabian Boehm
364f8223b2
pexpects: Skip eval-stack-overflow under ASAN CI
2023-05-12 19:26:10 +02:00
Fabian Boehm
9c5571f14f
docs: Reword Combining lists section
...
This was quite hard to read, and the term "cartesian product" honestly
doesn't help
2023-05-12 18:53:53 +02:00
Fabian Boehm
1ed31579f2
create_manpage_completions: Remove one more groff thing
...
This came up in the irb man page:
```
.Pp
.It Fl W
Same as `ruby -W' .
.Pp
```
2023-05-12 18:32:08 +02:00
Fabian Boehm
e09f7e4e4d
create_manpage_completions: Skip more prefixes
...
This also skips the 192 git- and 64 npm- pages that
1. have better completions already (for the most part)
2. don't have the same name as a command typically in $PATH
In doing so it reduces the runtime on my system from 9s to 7s. Granted
I have all of these, so that's the best case.
2023-05-12 17:57:29 +02:00
Fabian Boehm
5f672ece84
create_manpage_completions: Also clear already_output_completions
...
Prevents issues if we try to read a manpage twice - in which case we
could fall back to another parser, creating different results.
Fixes #9787
2023-05-12 16:35:05 +02:00
Fabian Boehm
56743ae770
tests: More slack for ASAN
...
Disable one and add a sleep to another
2023-05-11 22:14:12 +02:00
Fabian Boehm
8d5a223b39
tests/pexpect: Disable wait.py under SAN CI
2023-05-11 21:42:19 +02:00
Fabian Boehm
055e40467f
github actions: Disable pexpect for ASAN for now
...
This fails basically every commit, just by blowing the time budget.
2023-05-08 19:05:44 +02:00
Fabian Boehm
d855725965
completions/dnf: Use lowercase queryformat
...
See de9c5c5b59
Fixes #9783
2023-05-08 18:34:02 +02:00
ridiculousfish
e71b75e0e4
Reimplement environment and the environment stack in Rust
...
This reimplements the environment stack in Rust.
2023-05-07 15:15:56 -07:00
ridiculousfish
8ec1467dda
Implement (but do not yet adopt) Environment in Rust
...
This implements the primary environment stack, and other environments such
as the null and snapshot environments, in Rust. These are used to implement
the push and pop from block scoped commands such as `for` and `begin`, and
also function calls.
2023-05-07 15:15:56 -07:00
ridiculousfish
0681b6b53a
Make C++ env_var_t wrap Rust EnvVar
...
This reimplements C++'s env_var_t to reference a Rust EnvVar.
The C++ env_var_t is now just a thin wrapper.
2023-05-07 15:15:56 -07:00
ridiculousfish
10ee87eb28
Reimplement owning_null_terminated_array in Rust
...
owning_null_terminated_array is used for environment variables, where we need to
provide envp for child processes. This switches the implementation from C++ to
Rust.
We retain the C++ owning_null_terminated_array_t; it simply wraps the Rust
version now.
2023-05-07 15:15:56 -07:00
ridiculousfish
d4c3c77318
Changelog fix in #9776
2023-05-07 14:34:19 -07:00
Rocka
c21e13e62e
completions: fix qdbus Q_NOREPLY method completion
2023-05-07 14:34:03 -07:00
AsukaMinato
e2fdc63cdb
simplify some logic ( #9777 )
...
* simplify some logic
* simplify a &*
2023-05-07 08:39:34 -05:00
Mahmoud Al-Qudsi
6a301381c8
Fix compilation on 32-bit non-Linux platforms
...
The `u64::from(buf.f_flag)` was needed in two places. The existing handled macOS
which always has a 32-bit statfs::f_flag, but statvfs::f_flag is an `unsigned
long` which means it needs to be coerced to 64-bits on 32-bit targets.
2023-05-05 19:35:17 -05:00
Mahmoud Al-Qudsi
7d617d7d58
Support cross-compilation w/ detect_bsd()
check
...
Also assert that the code works as expected by asserting the result under known
BSD systems.
2023-05-05 19:03:23 -05:00
Mahmoud Al-Qudsi
220ffaeb65
Add completions for builtin disown
...
It completes identical to `fg` and `bg` w/ this change. I'm not aware of any
reason why it shouldn't, but feel free to enlighten me if I've missed something.
[ci skip]
2023-05-05 16:08:58 -05:00
Mahmoud Al-Qudsi
d55b65a8d2
Merge pull request #9771 from mqudsi/asan_take5
...
Rework ASAN integration
2023-05-04 19:43:37 -05:00
Mahmoud Al-Qudsi
4f5cef446a
apt.fish: Fix compatibility with newer versions of Debian/Ubuntu
...
Why drop support for `awk -e`? Linux sees so much needless churn!
2023-05-03 21:27:46 -05:00
Mahmoud Al-Qudsi
8bd5183944
Remove unnecessary UTF-8 decode in is_wsl()
2023-05-02 14:58:44 -05:00
Mahmoud Al-Qudsi
d3abd5d600
Fix inverted is_console_session() logic
...
The $TERM matching logic was inverted.
2023-05-02 14:55:04 -05:00
Mahmoud Al-Qudsi
c94fce75e5
Add multi-byte test for wcscasecmp()
...
The lowercase of İ is two bytes, making it a good test candidate.
2023-05-02 14:18:43 -05:00
Mahmoud Al-Qudsi
8668ce336c
Fix common::wcscasecmp() for multi-byte lowercase strings
2023-05-02 14:10:12 -05:00