Dennis Schridde
e3643c610f
doc_src/set.txt: -U affects only the user running the command, not all users
2018-10-10 18:42:56 +02:00
ridiculousfish
e812b609f9
Update set man page to clarify scoping rules
...
"When an exported variable goes out of scope, it is unexported."
As requested in #5064
2018-06-23 15:18:38 -07:00
David Adam
5e4d046492
docs: tidy language in set
notes
2017-08-09 23:25:00 +08:00
Kurtis Rader
67de733b9b
implement set --append
and set --prepend
...
Fixes #1326
2017-08-04 17:23:24 -07:00
Kurtis Rader
e825415917
implement set --show
...
This adds a new capability to the `set` command. It is similar to
running `set` with no other arguments but provides far more detail about
each variable. Such as whether it is set in each of the local, global,
and universal scopes. And the values in each scope. You can also ask for
specific variables to be shown.
Fixes #4265
2017-08-03 15:49:52 -07:00
Kurtis Rader
6f46f6b45a
refactor set
builtin
...
This completes the refactoring of the `set` builtin. It also removes a
seemingly never used feature of the `set` command. It also eliminates all
the lint warnings about this module.
Fixes #4236
2017-07-24 16:28:58 -07:00
Kurtis Rader
c263c59346
document that set -n
output is sorted
2017-05-31 13:22:49 -07:00
Fabian Homborg
0ee24b9bce
docs: Change misleading $status comment for set
...
It still performs the assignment even if the command substitution
returned unsuccessfully - `set foo (echo bar; false)` returns 1 but
sets $foo to bar.
Also use `type -p` instead of `which`.
2017-05-19 19:06:44 +02:00
Mark Griffiths
98ebb21489
Consistency fixes
2014-09-03 14:43:27 +01:00
Mark Griffiths
137abd0cfa
Make line length, wrapping and spacing consistent
2014-09-03 14:43:26 +01:00
Mark Griffiths
509d152e54
Tutorial auto colouring, Man page and Make fixes
...
Completely fixes #1557 and the underlying Doxygen changes that caused
it. Should make fish docs simpler and more robust, more consistent and
generally prettier.
todo:
- trap unmarked text as arguments in context
- test & fix sed portability - see in particular. (so far tested on BSD
(Mac) and GNU sed).
- test Makefile changes
- last round of aesthetic changes and getting that ascii fish in there…
2014-09-03 14:43:26 +01:00
Mark Griffiths
def7666609
Fix missed escaped '--' inside /fish block
2014-09-03 14:43:25 +01:00
Mark Griffiths
1052eeee8c
Simplify styling
2014-09-03 14:43:25 +01:00
Mark Griffiths
d282bc4625
Documentation update
...
Rework for Doxygen >1.8. Moved large parts of the documentation to a
simplified format, making use of Markdown enhancements and fixing bad
long options.
2014-09-03 14:43:24 +01:00
Kevin Ballard
dcc043df3b
Add an optional mode to env_get_string()
...
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.
2014-07-12 15:35:34 -07:00
Kevin Ballard
8c89e6bce5
Fix typo and tweak set
docs
...
Move the docs for the `-n` flag to `set` out of the list of scopes.
2014-07-12 00:21:04 -07:00
Alan Thompson
07944cfd20
Change terminology in docs from 'environment variables' -> 'shell variables'
2014-04-29 07:27:56 +02:00
David Adam (zanchey)
1287b9d823
Help cleanup
...
Large list of changes, including formatting and typos for most commands.
More substantive changes have been made to alias, bind, block, break,
builtin, case, cd, commandline, count, else, emit, fish_config, funced,
function, functions, history, math, mimedb, nextd, not, popd, prevd,
pushd, pwd, random, read, set, set_color, switch, test, trap, type,
ulimit, umask, and while.
2013-05-13 01:48:20 -07:00
ridiculousfish
ad8d68dd43
Make subcommands modify $status, and make builtin_set not modify status unless it fails
...
https://github.com/fish-shell/fish-shell/issues/547
https://github.com/fish-shell/fish-shell/issues/214
2013-01-31 15:57:08 -08:00
Jan Kanis
808fac9b14
document set -L/--long option
2012-12-29 11:56:11 -08:00
Jan Kanis
737972be2f
clarify docs on variable scope in functions
2012-12-29 11:56:10 -08:00
liljencrantz
cb59da7a6f
Fix typo in docs on exporting rules. This issue was pointed out by Isaac Dupree.
...
darcs-hash:20080108213600-75c98-b68f1bc3846ca7050955ee0f133acd20282cb908.gz
2008-01-09 07:36:00 +10:00
axel
df55e89bbb
Spelling fixes from Chris Rebert
...
darcs-hash:20070801173524-ac50b-760d9ddf0e68aa24cd570b542824a7f2b3248ff5.gz
2007-08-02 03:35:24 +10:00
axel
885d16fcd6
Fix casing and other minor issues in documentation
...
darcs-hash:20061031152316-ac50b-e68db9853d6e9461a0c054f1ea290704ccfc0a31.gz
2006-11-01 01:23:16 +10:00
axel
7a5823fd60
Documentation updates from Beni Cherniavsky
...
darcs-hash:20060919145203-ac50b-bc87b8f5e6a18395e4bc3e364da4a40ad97850e7.gz
2006-09-20 00:52:03 +10:00
axel
b6e8171f01
Fix minor null pointer bug in the set builtin, fix bug causing the -n switch to be ignored, add missing completions for the -n switch to functions and set builtins, and touch up the documentation for said builtin a bit
...
darcs-hash:20060831154400-ac50b-dddbee79481e0e0a8da9fc025e8a15c466460a2f.gz
2006-09-01 01:44:00 +10:00
axel
d79e8c7f62
Documentation updates, mostly corrections and cla<rifications to the docs for a few builtins
...
darcs-hash:20060608235811-ac50b-76b4fd54cb0911dd00f19f4a7c761f188d6ca068.gz
2006-06-09 09:58:11 +10:00
axel
04b142208d
Make it possible to specify scope of a variable to be erased or tested. Also make sure set exits with a non-zero exit status when erasing fails.
...
darcs-hash:20060604201451-ac50b-4ea0212c513b33be40559dfe8d65c1446c53f682.gz
2006-06-05 06:14:51 +10:00
axel
cf35a8e3a5
Add documentation about support for negative indices
...
darcs-hash:20060604094203-ac50b-6cf671235549eb79d3464a15398b6511057dedde.gz
2006-06-04 19:42:03 +10:00
axel
6fd69bdda8
Many minor edits and clarifications to the documentation, including comments about the exit status of a few commands
...
darcs-hash:20060603231517-ac50b-03d252516eef21d4dd3a2ba0f5bb68e82525213b.gz
2006-06-04 09:15:17 +10:00
axel
95ca3d1c69
Minor clarifications for documentation for the set builtin
...
darcs-hash:20060527134723-ac50b-8ad44bf44a8537f12b45281950fcaf85abbdd8f4.gz
2006-05-27 23:47:23 +10:00
axel
1505cc3d81
Add comment in documentation for set builtin about not allowing switches after non-switches
...
darcs-hash:20060128021933-ac50b-db340075e9a57b41a91d6b64d56d9b5579185254.gz
2006-01-28 12:19:33 +10:00
James Vega
495460066c
Fixed various spelling mistakes.
...
darcs-hash:20060123231706-35ec8-2a30db603eee503d944b06d101cc88ce59340309.gz
2006-01-24 09:17:06 +10:00
axel
aca0511762
Documentation corrections
...
darcs-hash:20060111132944-ac50b-43146f4df54b8a533fb92693f1292d6cb74cdef8.gz
2006-01-11 23:29:44 +10:00
axel
0a713a7939
Correct set help page. The handling of setting a variable to no value has changed.
...
darcs-hash:20051207162924-ac50b-3e3c579b8b932b9a5a11546fb4a042d5e2aa85c5.gz
2005-12-08 02:29:24 +10:00
axel
838ba08eaa
Event handling and job reaping updates
...
darcs-hash:20051011192343-ac50b-aa3f5ae5e2b34d122f10e3b59ceb6fdd447f4ae3.gz
2005-10-12 05:23:43 +10:00
axel
93eed7bc35
Spelling fixes
...
darcs-hash:20051008093310-ac50b-077bd66d4b2c3f98de421e04b125f0d89e9d503a.gz
2005-10-08 19:33:10 +10:00
axel
f971e02256
Exportable universal variables
...
darcs-hash:20050922201652-ac50b-f70e7607b4ace24da4020f2d432718dc335e5bdd.gz
2005-09-23 06:16:52 +10:00
axel
7ddecde543
Add subdirectories
...
darcs-hash:20050920133155-ac50b-9a14c6c664dd03afbe8e15e7c7998fcfb5c3c750.gz
2005-09-20 23:31:55 +10:00