| Commit message (Collapse) | Author | Age |
|
|
|
|
|
| |
Some grep implementations complain of empty subexpression
fixes #1313
|
|
|
|
| |
Closes #1253.
|
|
|
|
| |
Fixes #1243
|
|
|
|
| |
Fixes #1434
|
|
|
|
|
|
| |
This stops unconditionally setting values for HOME and USER,
if we find those values in the environment. It also saves about 16KB
on OS X, which getpwuid allocates.
|
|
|
|
|
|
| |
other sessions.
Fixes #825
|
|
|
|
| |
OptionParser eats commaandline arguments passed to bind actions, so avoid using it.
|
|
|
|
|
| |
Fixes bug where sourcing a file with an unclosed quote would not have a
backtrace
|
|\ |
|
| | |
|
|/
|
|
| |
Fixes TypeErrors when using bindings tab"
|
| |
|
| |
|
|\
| |
| | |
Fix minor syntax and capitalization mistakes in vi mode docs
|
|/ |
|
|
|
|
| |
fixes #1536
|
|
|
|
|
| |
The `read` docs incorrectly asserted that -g was the default for
variables. In actuality it behaves the same way that `set` does.
|
| |
|
| |
|
| |
|
|\
| |
| |
| | |
kballard-fix_set_scopes
|
| |
| |
| |
| | |
Fixes #1548
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
| |
| |
| |
| |
| |
| | |
They're dynamically calculated, so they qualify. This also removes them
from the list of exported global variables, because they're actually not
exported.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
| |
| |
| |
| |
| |
| | |
env_exists() wasn't properly handling multiple scopes in some cases,
notably with readonly/electric variables. Rewrite it to operate in a
more straightforward fashion.
|
| |
| |
| |
| | |
Fixes #1545
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
When initializing fish, ignore any inherited environment variables that
match any of the readonly or electric variable names.
This prevents really weird behavior when e.g. fish is launched with
COLUMNS already set to something. In that case, testing $COLUMNS within
fish behaves normally, but any subprocesses get the value that fish
itself had inherited.
|
|/
|
|
| |
Move the docs for the `-n` flag to `set` out of the list of scopes.
|
|
|
|
| |
Fixes #1543
|
| |
|
| |
|
|
|
|
| |
Fixes #1510
|
|
|
|
|
| |
Calling writer() might fail in which case launch_buff gets freed.
This patch prevents the subsequent use of memory after it was freed.
|
|
|
|
| |
used accidentally
|
|
|
|
|
|
| |
one.
Fixes #1526
|
|
|
|
| |
command has run
|
| |
|
| |
|
| |
|
|
|
|
| |
Fixes #1522
|
|
|
| |
The stuff nedded to build on Ubuntu
|
|
|
|
| |
Closes 1425 (https://github.com/fish-shell/fish-shell/issues/1425)
|
| |
|
| |
|
| |
|
|\
| |
| |
| | |
Incorporates more removal and cleanup of fishd remnants.
|