summaryrefslogtreecommitdiff
path: root/Src/options.c
AgeCommit message (Collapse)AuthorFilesLines
2025-03-0253368: ignore no-op changes to EMACS/VI optionsBart Schaefer1-1/+7
2024-09-1453081: remove old BeOS support codeOliver Kiddle1-9/+0
2024-02-1845837: fix process group restoration upon exitStephane Chazelas1-3/+4
2022-11-0250851: restore typtab when necessaryJun-ichi Takimoto1-1/+5
inittyptab() must be called when returning from a function with "setopt localoptions MULTIBYTE|BANGHIST|SHSTDIN", and also in function dosetopt() when setting these options (via $options, for example). We intentionally did not take account of the options EMACS/VI because these options are obsolete and their use is not recommended.
2021-09-2249422: improve support of --disable-dynamic-nssJun-ichi Takimoto1-1/+1
see also 49392 (Vincent) and 49412 (Axel)
2021-04-1848560: add TYPESET_TO_UNSET option to remove initialization of parametersBart Schaefer1-0/+1
Changes typeset such that ${newparam-notset} yields "notset" and "typeset -p newparam" does not show an assignment to the parameter. This is similar to the default behavior of bash and ksh, with minor differences in typeset output. Also add tests for some POSIX incompatibilities plus minor changes for test harness robustness.
2021-04-1047913: implement CASE_PATHS option to make NO_CASE_GLOB more sensibleBart Schaefer1-0/+1
2020-06-0946026: Add CLOBBER_EMPTY option.Peter Stephenson1-0/+1
2020-04-02Add SHORT_REPEAT optionMikael Magnusson1-0/+1
2020-02-14Clean up error-message white spacedana1-9/+21
2020-02-14Improve PRIVILEGED fixes (again)dana1-49/+43
* Pass RGID instead of passwd GID to initgroups() * Clean up #ifdefs, avoid unnecessary checks * Flatten conditions
2020-02-14Improve PRIVILEGED fixesDaniel Shahaf1-81/+67
- Fix retval handling in bin_setopt() - Don't skip_setuid / skip_setgid. It's not our place to optimize away noops (that might not even _be_ noops; they might change the saved uid…). - Remove HAVE_* guard checks around functions that are used unguarded elsewhere. - Use bsd-setres_id.c from OpenSSH to provide setresuid() / setresgid() everywhere, and thus simplify the ifdef soup. Fix some preëxisting bugs in the macro definitions of setuid() (do we still need that one?). - Fix zwarning() format codes for variadic arguments type safety - Restored a comment from HEAD - Fix failure modes around initgroups() - Compared privilege restoration code with OpenSSH's permanently_drop_uid() and updated as needed - Add E01 PRIVILEGED sanity checks
2020-02-14Drop privileges securelySam Foxman1-40/+121
2019-04-1244198: Add cd_silent option to suppress all cd outputdana1-0/+1
2018-06-1543008: Improve code to remove privileges.Peter Stephenson1-7/+24
Remove warnings of unused values as we always check the finally result later. Put segid before setuid as the setgid could fail if UID no longer privileged.
2017-12-2242156: new CHECK_RUNNING_JOBS option demanded by bash groupiesPeter Stephenson1-0/+1
Also new job options. Also suppress debug error if rows or columns are reported as zero as this is normal without a physical terminal.
2017-01-2940453: signal handler safety for callers of patcompile(PAT_STATIC), which is ↵Barton E. Schaefer1-1/+1
not re-entrant.
2017-01-2340391: Add WARN_NESTED_VAR option and functions -W.Peter Stephenson1-0/+1
These are companions to WARN_CREATED_GLOBAL, warning when a variable from an enclosing scope is altered.
2017-01-1040306 with doc tweaks: Change behaviour expanding alias in () function ↵Peter Stephenson1-0/+1
definition. Now an error unless the () is part of the same error as the name. Add ALIAS_FUNC_DEF option to allow it again.
2016-03-0338039: POSIXy behavior for "set +o"Barton E. Schaefer1-3/+4
2015-12-19unposted (cf. 37387): emulate turns off WARN_CREATE_GLOBALBarton E. Schaefer1-1/+1
2015-11-0137038: add -l option to emulate to list options in emulationsPeter Stephenson1-0/+30
2015-10-3037022: add GLOB_STAR_SHORT option to abbreviate ** and ***Peter Stephenson1-0/+1
2015-06-2935655: APPEND_CREATE option for POSIX copmatible NO_CLOBBERPeter Stephenson1-0/+1
2015-06-24various posts: Implement assignment parsing for typeset.Peter Stephenson1-1/+1
Typeset assignments now work like raw assignments except for no "+=" and no GLOB_ASSIGN. Documented in typeset builtin doc and mentioned in release notes. Tests to ensure basic sanity. Enabled by default, can be turned off by "disable -r" with typeset family of commands.
2015-06-0835416: Turn on MULTIBYTE in all emulations.Peter Stephenson1-1/+1
This now includes sh.
2014-10-31Take more care with errors from setuid().Jérémie Roquet1-1/+11
This is to ensure the user is aware of errors unsetting the PRIVELEGED option.
2014-06-1332768 with further modifications: LOCAL_LOOPS option.Peter Stephenson1-0/+1
2014-06-0632682 with tweaks: Add INC_APPEND_HISTORY_TIME.Peter Stephenson1-0/+1
Revert INC_APPEND_HISTORY behaviour.
2014-06-0132634: add POSIX_ARGZERO optionBarton E. Schaefer1-0/+1
2013-10-06users:18023: Add PIPEFAIL optionPeter Stephenson1-0/+1
2013-06-1331444: Basic code for enable/disable -pPeter Stephenson1-0/+1
2013-03-05users/17665: add FORCE_FLOAT optionPeter Stephenson1-0/+1
2012-11-1530789: Add CONTINUE_ON_ERROR for old behaviour.Peter Stephenson1-0/+1
New behaviour is for scripts to exit on error instead of returning to top level and executing the next command.
2012-10-1130726: make shell options passed to emulate stick along with the emulationPeter Stephenson1-13/+5
2012-10-0730722: fix some cases where emulations or options were not propagated properlyPeter Stephenson1-26/+46
from the emulate command
2012-10-0530716: make IGNORECLOSEBRACES an emulation optionPeter Stephenson1-1/+1
2012-08-2130633: "functions -T" only traces marked function, not called functionsPeter Stephenson1-1/+1
2012-03-0730320: "emulate" accepts invocation-time flags; other small doc tweaks.Bart Schaefer1-0/+2
2012-03-0130303: emulate inside function marked for execution tracing enables xtracePeter Stephenson1-0/+14
2012-01-0830101: add HASH_EXECUTABLES_ONLY optionPeter Stephenson1-0/+1
2011-12-0829955++: IGNORE_CLOSE_BRACES optionPeter Stephenson1-0/+1
2010-11-2228424: new POSIX_STRINGS optionPeter Stephenson1-1/+2
2010-10-0228308/28310: HIST_LEX_WORDS, check for quick history readPeter Stephenson1-0/+1
2010-09-1228253: document -h argument to atribute commandsPeter Stephenson1-0/+1
2010-03-1627793 and follow ups: add PATH_SCRIPT option to find script using $PATHPeter Stephenson1-0/+1
2010-01-2727638, based on Frank Terbeck, 27633: SOURCETRACE optionPeter Stephenson1-0/+1
2010-01-13Joakim Rosqvist: 27591 as modified in 27594:Peter Stephenson1-0/+3
KEYBOARD_HACK variable
2009-07-1927167: add POSIX_CD option to test "." after CDPATHPeter Stephenson1-0/+1
2009-07-1027106: reset status on command that expands to emptyPeter Stephenson1-0/+1
27122: add POSIX_JOBS option