ridiculousfish
e395a0eb69
Migrate PATH-completion logic from complete.cpp to expand.cpp
...
Prior to this fix, when completing a command that doesn't have a /, we
would prepend each component of PATH and then expand the whole thing. So
any special characters in the PATH would be interpreted when performing
tab completion.
With this fix, we pull the PATH resolution out of complete.cpp and
migrate it to expand.cpp. This unifies nicely with the CDPATH resolution
already in that file. This requires introducing a new expand flag
EXPAND_SPECIAL_FOR_COMMAND, which is analogous to EXPAND_SPECIAL_CD
(which is renamed to EXPAND_SPECIAL_FOR_CD). This flag tells expand to
resolve paths against PATH instead of the working directory.
Fixes #952
2016-04-07 20:15:32 -07:00
..
2014-11-24 01:51:07 -08:00
2015-06-14 14:13:57 -07:00
2016-01-14 16:58:29 +01:00
2016-01-14 16:58:29 +01:00
2015-06-14 14:13:57 -07:00
2016-02-16 11:40:40 -08:00
2014-09-18 15:46:17 -07:00
2016-02-16 11:40:40 -08:00
2014-09-18 15:46:17 -07:00
2016-03-20 18:47:38 -07:00
2016-03-20 18:47:38 -07:00
2016-03-20 18:47:38 -07:00
2016-03-20 18:47:38 -07:00
2016-01-10 17:25:22 -08:00
2016-01-10 17:25:22 -08:00
2016-01-10 17:25:22 -08:00
2016-01-10 17:25:22 -08:00
2015-05-15 17:56:12 -07:00
2016-02-25 17:16:36 -08:00
2015-05-15 17:56:12 -07:00
2014-08-20 21:45:07 -07:00
2014-10-02 18:41:39 -07:00
2015-05-17 14:17:01 -07:00
2015-05-17 14:17:01 -07:00
2014-10-02 18:41:39 -07:00
2014-09-30 17:06:56 -07:00
2015-05-02 18:22:20 -07:00
2014-09-21 21:03:44 -07:00
2014-09-21 21:03:44 -07:00
2014-09-21 21:03:44 -07:00
2012-06-15 16:24:05 -07:00
2014-07-29 14:42:03 -07:00
2012-06-15 16:24:05 -07:00
2012-06-15 16:24:05 -07:00
2014-12-23 15:46:47 -08:00
2016-04-05 19:29:23 -07:00
2016-04-05 19:29:23 -07:00
2014-12-23 15:46:47 -08:00
2014-11-24 01:51:07 -08:00
2016-02-25 17:16:36 -08:00
2016-02-25 17:16:36 -08:00
2013-03-03 00:45:34 +05:30
2015-01-15 11:21:07 -08:00
2015-01-15 11:21:07 -08:00
2013-03-03 00:45:34 +05:30
2014-07-14 00:46:38 -07:00
2014-09-07 23:56:59 -07:00
2014-09-07 23:56:59 -07:00
2014-09-07 23:56:59 -07:00
2014-09-07 23:56:59 -07:00
2014-09-21 20:00:26 -07:00
2014-09-21 20:00:26 -07:00
2014-07-14 00:46:38 -07:00
2014-09-30 17:06:56 -07:00
2014-11-25 00:51:39 -08:00
2014-09-30 20:58:45 -07:00
2014-09-30 17:06:56 -07:00
2015-10-09 11:27:18 +08:00
2016-04-08 10:49:29 +08:00
2016-04-08 10:49:29 +08:00
2015-10-09 11:27:18 +08:00
2005-09-20 23:31:55 +10:00
2016-04-06 13:04:44 -07:00
2016-04-06 13:04:44 -07:00
2005-09-20 23:31:55 +10:00
2005-09-20 23:31:55 +10:00
2010-09-18 10:18:26 +08:00
2005-09-20 23:31:55 +10:00
2005-09-20 23:31:55 +10:00
2005-09-20 23:31:55 +10:00
2016-02-25 17:16:36 -08:00
2015-06-12 16:05:59 -07:00
2005-09-20 23:31:55 +10:00
2005-09-20 23:31:55 +10:00
2015-10-23 15:15:39 -07:00
2015-10-23 15:15:39 -07:00
2005-09-20 23:31:55 +10:00
2016-02-15 13:13:28 -08:00
2016-02-25 17:16:36 -08:00
2016-02-25 17:16:36 -08:00
2005-09-20 23:31:55 +10:00
2012-05-11 18:59:38 -07:00
2016-04-07 20:15:32 -07:00
2016-04-07 20:15:32 -07:00
2012-05-11 18:59:38 -07:00
2012-06-24 13:43:44 -07:00
2014-07-13 19:11:29 -07:00
2013-12-12 18:18:07 -08:00
2012-06-24 13:43:44 -07:00
2012-07-08 09:19:11 +08:00
2015-12-19 14:49:07 -08:00
2015-12-19 11:32:57 -08:00
2012-07-08 09:19:11 +08:00
2014-10-14 00:41:39 -07:00
2016-02-25 17:16:36 -08:00
2015-11-14 13:15:30 +01:00
2012-12-22 18:38:28 +01:00
2016-02-25 17:16:36 -08:00
2016-02-25 17:16:36 -08:00
2014-09-30 17:06:56 -07:00