| 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.
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
on an env_universal_t.
|
|
|
|
| |
universal variable storage into a class for better testability.
|
|
|
|
| |
Fixes https://github.com/fish-shell/fish-shell/issues/696
|
| |
|
|
|
|
|
|
| |
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
|
|
|
|
| |
var_uni_entry_t. Various other cleanups.
|
| |
|
|
|
|
| |
instead of pointers. Changed some ints to bools.
|
| |
|
| |
|
|
|
|
|
| |
Rewrite IO chains to be a vector of pointers, instead of a linked list
Removed io_transmogrify
|
|
|
|
| |
path_allocate_cd_path, etc. functions
|
|
|
|
| |
Cleanup of non-wcstring version of path_get_path
|
|
|
|
| |
if it exists
|
| |
|
|
|
|
| |
Made autosuggestion work properly for tilde expansion
|
|
|
|
| |
to fish itself to reduce number of fork calls made at launch
|
| |
|
|
|
|
| |
null_terminated_array_t class.
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
Migrate uses of empty() to missing() to distinguish between empty variable and unset variable
|
| |
|
| |
|
| |
|
|
|
|
|
| |
This is done by `sed -i -e 's/[ \t]*$//' *.[c,h]`, which should not
introduce any functionality change.
|
|
|
|
| |
darcs-hash:20080116220738-75c98-2b7c886629857540efee8f1cab9da0aa9ed8f76d.gz
|
|
|
|
|
|
| |
tweak the todo list, etc.
darcs-hash:20061026102253-ac50b-eb42fdab9a9211d68386a563134856a96b870d90.gz
|
|
|
|
|
|
| |
forgetting to cast null pointers to variadic functions
darcs-hash:20061019151947-ac50b-4043638a7a830fa80fd918f92365f5afe3ff208a.gz
|
|
|
|
|
|
| |
reorderings
darcs-hash:20060828120244-ac50b-ad4be149ff245b6f799452f9eeff7bcc60af1526.gz
|
|
|
|
| |
darcs-hash:20060608235212-ac50b-25fd55f96356af65d4da1eec100cc954b4a9f81e.gz
|
|
|
|
|
|
| |
make sure set exits with a non-zero exit status when erasing fails.
darcs-hash:20060604201451-ac50b-4ea0212c513b33be40559dfe8d65c1446c53f682.gz
|
|
|
|
| |
darcs-hash:20060410153626-ac50b-700ff7687647b8aab47ba79d759d1739cbe60425.gz
|
|
|
|
|
|
| |
minor signal handling improvements
darcs-hash:20051014114033-ac50b-8d0f6274ac590f1b6dbe82c55366f44ed7debf20.gz
|
|
|
|
| |
darcs-hash:20051004151139-35ec8-7af69b9d7647d145dc621f7eaea726e729cff554.gz
|
|
|
|
| |
darcs-hash:20050926144703-ac50b-3ed14d14b02908862d69aec08aab35b6d0188bba.gz
|
|
|
|
| |
darcs-hash:20050922201652-ac50b-f70e7607b4ace24da4020f2d432718dc335e5bdd.gz
|
|
darcs-hash:20050920132639-ac50b-fa3b476891e1f5f67207cf4cc7bf623834cc5edc.gz
|