ridiculousfish
3513ce3ac0
Universal variable callbacks should only be announced for changed
...
values, not every value. Also support erase notifications.
2014-06-16 12:27:28 -07:00
ridiculousfish
6277a2e4a4
Migrate global functions out of env_universal. Have env operate directly
...
on an env_universal_t.
2014-06-15 17:30:50 -07:00
ridiculousfish
9ae06c541f
Remove inotify-based universal notifier
...
The inotify notifier is fragile, fails on travis, and fails to compile
on certain Linux kernels. It doesn't appear to work as well as the named
pipe mechanism. Best to just get rid of it.
2014-05-29 09:57:56 -07:00
ridiculousfish
8769c06350
Fix some annoying warnings in fish_tests with gcc 4.8
2014-05-24 16:15:45 -07:00
ridiculousfish
8a577a9d4d
Remove an errant system("ls")
2014-05-21 10:55:00 -07:00
ridiculousfish
950150469a
Disable inotify tests pending investigation into why it fails on
...
travis-ci
2014-05-21 10:50:57 -07:00
ridiculousfish
e214df8980
Try using IN_DELETE_SELF with inotify
2014-05-16 13:37:23 +08:00
ridiculousfish
e3cccdf571
Add check for kernel version to try to determine why travis-ci is
...
failing with inotify
2014-05-16 13:09:10 +08:00
ridiculousfish
a0bf841be2
Check for non-negative watch object in inotify_add_watch
2014-05-16 12:54:52 +08:00
ridiculousfish
73cbb0c65f
Add a check to ensure the file really is deleted in inotify test
2014-05-16 12:35:07 +08:00
ridiculousfish
2f89ddbead
Add test for inotify support to try to track down travis-ci is failing
2014-05-16 12:16:10 +08:00
ridiculousfish
a526693915
Refine test for enabling strategy_inotify in fish_tests
2014-05-15 17:25:13 +08:00
ridiculousfish
31f2a3a7d7
Fix a warning about missing enum in fish_tests.cpp
2014-05-15 14:44:17 +08:00
ridiculousfish
d554b7da08
Merge branch 'master' into death_of_fishd
2014-05-09 16:07:11 -07:00
ridiculousfish
e97bec10ea
Remove needs_polling from universal_notifier_t. Add some expository
...
comments.
2014-05-07 14:22:05 -07:00
ridiculousfish
7763718b60
Further cleanup and rationalization of named pipe universal notifier.
2014-05-06 14:10:55 -07:00
Konrad Borowski
7f2c4cbf8a
Move the empty function test to tests.
2014-05-06 12:31:44 +02:00
ridiculousfish
8a263952ad
Fix named pipe universal notifier. No more threads. Tests now pass.
2014-05-05 23:33:05 -07:00
Konrad Borowski
16534ec644
Improve test_wchar2utf8().
...
Currently it contains strange code like using `do` loop in order to
avoid `goto`s (they aren't evil, honestly), the pointless `if (mem)`
conditional which doesn't even work (had semicolon for some reason).
You may think this code had a bug where the code didn't check for
the pointer to be null before calling `free`, but this is not the case,
as according to C and C++ standard, `free` should allow `NULL` pointers,
and ignore them.
2014-05-04 15:48:50 +02:00
ridiculousfish
7e44bcfd8a
Make inotify-based universal variable notifier tests pass
2014-05-03 19:57:20 -07:00
ridiculousfish
8cbd66b0f9
Merge branch 'death_of_fishd' of https://github.com/fish-shell/fish-shell into death_of_fishd
2014-05-03 19:36:22 -07:00
ridiculousfish
47a81c2b39
Re-establish inotify watch when file is deleted
2014-05-03 16:31:11 -07:00
ridiculousfish
56bf209f84
Merge branch 'master' into death_of_fishd
...
Conflicts:
configure.ac
2014-05-03 15:33:48 -07:00
ridiculousfish
c66a574fa0
Simple test for completing redirections
2014-05-02 23:25:54 -07:00
ridiculousfish
186b0f62eb
Early implementation of inotify-based universal variable notifier for
...
Linux
2014-05-01 16:44:37 -07:00
ridiculousfish
60c8012e9e
Implement notifyd-based notification strategy for universal variables
...
(OS X specific)
2014-04-30 15:50:03 -07:00
ridiculousfish
7a5a277c29
Implement universal variable deletion. Adopt shared memory uvar notification.
2014-04-29 17:03:00 -07:00
ridiculousfish
38da76804e
Implement shared memory strategy for universal variable notifications
2014-04-29 14:14:50 -07:00
ridiculousfish
a949f0b0c3
Move universal variable callbacks out from under the lock, to avoid a
...
possible deadlock on reentrancy
2014-04-29 11:28:00 -07:00
ridiculousfish
753c42a3d5
Merge branch 'master' into death_of_fishd
2014-04-27 18:53:35 -07:00
ridiculousfish
97c2ec8dcf
Fix a duplicated variable, and defeat some warnings in fish_tests
2014-04-27 18:44:21 -07:00
ridiculousfish
4948508277
Squelch some more warnings on Linux
2014-04-27 18:27:34 -07:00
ridiculousfish
d7f22a0c27
Correctly invoke callbacks with fishd-less universal variables. All
...
tests now pass.
2014-04-27 16:53:07 -07:00
ridiculousfish
3b4794ae94
Implement atomic loading/saving of fishd file within fish, eventually
...
permitting removal of fishd. Universal variables test passes, others
fail.
2014-04-27 13:35:32 -07:00
ridiculousfish
3d85000f13
Reduce the iterations in the iothread test to something more reasonable.
...
Remove an unnecessary lock.
2014-04-17 16:39:41 -07:00
ridiculousfish
3d1a204c83
Simplify threading implementation. Removed iothread array. Threads now
...
run detached (no more pthread_join), and will not exit until they see
that all requests have been dequeued.
2014-04-17 16:07:50 -07:00
ridiculousfish
0d3169ef70
Run restyle.sh to enforce style rules.
2014-03-31 10:01:39 -07:00
ridiculousfish
aa1b065dd1
Allow appending path hints to history items after they have been added,
...
allowing us to avoid the delay before items appear in history. Should
fix #984
2014-03-28 23:22:03 -07:00
ridiculousfish
f2a437bd3b
Merge branch 'master' into parser_cleanup
...
Conflicts:
parse_constants.h
parse_tree.h
2014-03-26 13:59:14 -07:00
ridiculousfish
aabed8279e
Incorporate a modified UTF8 <-> wchar_t implementation from Alexey
...
Vatchenko (http://www.bsdua.org/libbsdua.html ) in preparation for
eliminating our dependency on iconv
2014-03-22 23:46:58 -07:00
ridiculousfish
ad6367018b
Excise use of parser_t's error() functionality. Thread a
...
parse_error_list_t through all of the expand functions, enabling them to
report errors more directly. Improve aspects of error reporting for
expansion failures.
2014-03-21 17:13:33 -07:00
ridiculousfish
e5ef45e4c0
Rewrite parser_t::test_args and parser_t::eval_args to use new parser
2014-03-20 21:32:02 -07:00
ridiculousfish
e780637cf4
Add some tests for parse_util_detect_errors_in_argument
2014-03-20 21:32:02 -07:00
ridiculousfish
1c58b6d83e
Rewrite parser_t::eval_args to use new AST parser
2014-03-20 21:32:02 -07:00
ridiculousfish
73c2846d64
Remove support for input IO_BUFFERs, which were only used by fish_pager
2014-03-15 19:49:55 -07:00
ridiculousfish
be33d3f2a4
Revert "Merge pull request #1317 from pullreq/cpp"
...
This reverts commit 74135c0600
, reversing
changes made to 6d749789ce
.
See discussion in #1317
2014-02-28 02:16:48 -08:00
Geoff Nixon
18dd6f58e3
Fixes .c -> .cpp in comments. For doxygen.
2014-02-27 06:23:40 -08:00
ridiculousfish
a57077aba3
Correctly color "end" command, and variable name in for loop.
2014-02-21 18:01:40 -08:00
ridiculousfish
1fbf633817
Reimplement exec parsing. Instead of special-casing exec as a command,
...
promote it to a decoration (like 'command' or 'builtin'). This makes tab
completion and syntax highlighting treat exec's first argument as a
command and is otherwise a nice simplification. Fixes #1300
2014-02-13 10:10:49 -08:00
ridiculousfish
503bbd85b5
Test and fix issue where, if binding X is a prefix of binding Y, and X
...
is specified before Y, then Y will never be invoked because X will
always get there first. Now instead we order bindings in descending
order by length, so that we always test the binding before any others that
prefixes it. Fixes #1283 .
2014-02-12 12:52:31 -08:00