| Commit message (Collapse) | Author | Age |
|
|
|
|
|
|
|
|
|
|
|
| |
Instead of introducing a new local scope at the point of `set`, merely
push a new local scope at the end of env_init(). This means we have a
single toplevel local scope across the lifetime of the fish process,
which means that
set -l foo bar
echo $foo
behaves as expected, without modifying the global environment.
|
|
|
|
|
| |
When using `set -e foo[1]` to erase an index, if the variable doesn't
already exist, return 1 instead of creating it as an empty variable.
|
|
|
|
|
|
|
|
| |
The mode restricts the scope in which the variable is searched for.
Use this new restricted scope functionality in the `set` builtin. This
fixes `set -g` to not show local shadowing variable values, and also
allows for scoped erasing of slices.
|
|
|
|
|
|
|
|
|
| |
When attempting to set a readonly or electric variable in the local or
universal scopes, print an appropriate error. Similarly, print an error
when setting an electric variable as exported. In most cases this is
simply a nicer error instead of the 'read-only' one, but for the 'umask'
variable it prevents `set -l umask 0023` from silently changing the
global value.
|
|
|
|
|
|
|
|
|
|
|
| |
When using the `set` command with the -l flag, if we're at the top
level, create a temporary local scope. This makes query/assignment
behavior be consistent with the value-printing behavior.
This works by marking the current block as needing to pop the
environment if a local scope was pushed. I assume this is safe to do. I
also assume the current block is the right one to modify, rather than
trying to walk up the stack to the root.
|
|
|
|
| |
Move the docs for the `-n` flag to `set` out of the list of scopes.
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
modify PATH in share/config.fish. Introduced variable fish_user_paths, and a glue function __fish_reconstruct_path that splices together PATH with fish_user_paths. Changed fish to no longer validate changes to PATH unless the paths are new (i.e. don't recheck what's already there). Modified certain sets to store const wchar_t instead of wcstring to save a few allocations.
https://github.com/fish-shell/fish-shell/issues/527
|
|
|
|
| |
https://github.com/fish-shell/fish-shell/issues/575
|
|
|
|
|
|
|
| |
unless it fails
https://github.com/fish-shell/fish-shell/issues/547
https://github.com/fish-shell/fish-shell/issues/214
|
|
|
|
| |
file descriptors
|
|
|
|
| |
https://github.com/fish-shell/fish-shell/issues/497
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
Rewrite IO chains to be a vector of pointers, instead of a linked list
Removed io_transmogrify
|
| |
|
|\ |
|
| |
| |
| |
| | |
Don't hard-fail on setting the PATH or CDPATH just because it contains an invalid entry
|
| | |
|
|/
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Builtin 'set' now can set variable index ranges:
set test[1..3] a b c #works
set test[-1..-3] a b c #works if variable have enough elements
set test[2..-2] a b c #works
set test[1..3 -1..-2] a b c b b #works
Expand now can parse index ranges. But not handle for now.
TODO:
* Add variable substitution index ranges: echo $PATH[-1..1]
* Add command substitution index range: echo (seq 10)[-1..-4]
* Add process substitution indexes and ranges: echo %vim[-1]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
commit 5b7659ec3d5e67b8dad8d3543d87a0169dc9a9e9
Merge: 57f3df3 22a4cd6
Author: ridiculousfish <corydoras@ridiculousfish.com>
Date: Thu Jun 21 10:15:41 2012 -0700
Merge branch 'master' of https://github.com/maxfl/fish-shell into maxfl-master-base
commit 22a4cd686fbe4a6730859aa1a84b21bc9c832203
Author: maxfl <gmaxfl@gmail.com>
Date: Tue Jun 19 15:51:43 2012 +0400
set now expands the variable size, if index is outside it
commit 9b0ffa83157ce0cfa36d246fa2e3179d6b790dea
Author: maxfl <gmaxfl@gmail.com>
Date: Mon Jun 18 21:30:44 2012 +0400
fixes #78
commit 78387fb3915b01342a981059780a164eedc0f8eb
Merge: c0e6096 93dc7d4
Author: maxfl <gmaxfl@gmail.com>
Date: Mon Jun 18 21:27:47 2012 +0400
Merge remote-tracking branch 'fishfish/master'
commit c0e60963c179f80cb1d5d6a18b44510e55c95e10
Merge: 32a98e7 1bead8a
Author: maxfl <gmaxfl@gmail.com>
Date: Mon Jun 18 10:29:42 2012 +0400
Merge remote-tracking branch 'fishfish/master'
commit 32a98e799eb2f016f8bad5287851f6353b835014
Merge: 6e71021 f2b5292
Author: maxfl <gmaxfl@gmail.com>
Date: Sat Jun 16 18:42:07 2012 +0400
Merge remote-tracking branch 'fishfish/master'
commit 6e710211bca0bca73d738d71e22d20e700db2a63
Author: maxfl <gmaxfl@gmail.com>
Date: Thu Jun 14 11:01:13 2012 +0400
revert fish_pager
commit 731a29f35bdbaa4dfaad78c7428ab2e5edb45a6c
Author: maxfl <gmaxfl@gmail.com>
Date: Thu Jun 14 10:57:41 2012 +0400
revert fish_pager.cpp
commit 72c1bfc7bfa77bb723d6df3f030a1918db2aca8a
Merge: ea74ffa 9b781c4
Author: maxfl <gmaxfl@gmail.com>
Date: Wed Jun 13 17:54:11 2012 +0400
Merge branch 'master' into maxfl_completions
commit ea74ffa08689a35fd08bc3520a0d52cf30365568
Author: maxfl <gmaxfl@gmail.com>
Date: Wed Jun 13 17:35:20 2012 +0400
__fish_complete_command now can understand '--arg=option' tokens
latexmk completion is updated
commit 45b667826f3f181972e4987a3609d4ccac16a675
Author: maxfl <gmaxfl@gmail.com>
Date: Wed Jun 13 16:46:47 2012 +0400
. completion
commit 1c9f8ffc9e7ea45eee8aedba5a48e21c75a08882
Author: maxfl <gmaxfl@gmail.com>
Date: Wed Jun 13 16:46:13 2012 +0400
a lot of new completions
commit 8224d9f984a678fd49cdf78f76770977e0ae257b
Author: Maxim Gonchar <gonchar@myhost.localdomain>
Date: Tue Jun 12 20:19:31 2012 +0400
A lot of new completions.
Some small updates and fixes of old functions and completions.
commit 234ed8f5dab209fd657ccaf0dd23d636d2a06355
Author: Maxim Gonchar <gonchar@myhost.localdomain>
Date: Tue Jun 12 20:03:44 2012 +0400
step-coloring initial
set_color correction
|
| |
|
| |
|
|
|
|
|
|
| |
array.
This was introduced in 7b3377e78c16b3ba74edb141ca0dd2ec895806b9
|
| |
|
|
|
|
| |
Added -L option to set to mean "don't abbreviate"
|
|
|
|
| |
messages in weird places
|
|
|
|
| |
Total allocations down by a factor of 3 or so, live allocations a few KB.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
changing directories, implicit cd (entering directory just by typing it's name) is removed.
|
| |
|
| |
|
|
|
|
| |
wcstrings in it
|
| |
|
| |
|
| |
|
|
|
|
| |
Migrate uses of empty() to missing() to distinguish between empty variable and unset variable
|
|
|
|
| |
update_values2(), env_set2() etc. to support wcstring and vector instead of using array_list_t
|
| |
|
|
|