summary refs log tree commit diff
path: root/Src/options.c
Commit message (Collapse)AuthorAgeFilesLines
* Add SHORT_REPEAT optionMikael Magnusson2020-04-021-0/+1
|
* Clean up error-message white spacedana2020-02-141-9/+21
|
* Improve PRIVILEGED fixes (again)dana2020-02-141-49/+43
| | | | | | | | * Pass RGID instead of passwd GID to initgroups() * Clean up #ifdefs, avoid unnecessary checks * Flatten conditions
* Improve PRIVILEGED fixesDaniel Shahaf2020-02-141-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
* Drop privileges securelySam Foxman2020-02-141-40/+121
|
* 44198: Add cd_silent option to suppress all cd outputdana2019-04-121-0/+1
|
* 43008: Improve code to remove privileges.Peter Stephenson2018-06-151-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.
* 42156: new CHECK_RUNNING_JOBS option demanded by bash groupiesPeter Stephenson2017-12-221-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.
* 40453: signal handler safety for callers of patcompile(PAT_STATIC), which is ↵Barton E. Schaefer2017-01-291-1/+1
| | | | not re-entrant.
* 40391: Add WARN_NESTED_VAR option and functions -W.Peter Stephenson2017-01-231-0/+1
| | | | | These are companions to WARN_CREATED_GLOBAL, warning when a variable from an enclosing scope is altered.
* 40306 with doc tweaks: Change behaviour expanding alias in () function ↵Peter Stephenson2017-01-101-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.
* 38039: POSIXy behavior for "set +o"Barton E. Schaefer2016-03-031-3/+4
|
* unposted (cf. 37387): emulate turns off WARN_CREATE_GLOBALBarton E. Schaefer2015-12-191-1/+1
|
* 37038: add -l option to emulate to list options in emulationsPeter Stephenson2015-11-011-0/+30
|
* 37022: add GLOB_STAR_SHORT option to abbreviate ** and ***Peter Stephenson2015-10-301-0/+1
|
* 35655: APPEND_CREATE option for POSIX copmatible NO_CLOBBERPeter Stephenson2015-06-291-0/+1
|
* various posts: Implement assignment parsing for typeset.Peter Stephenson2015-06-241-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.
* 35416: Turn on MULTIBYTE in all emulations.Peter Stephenson2015-06-081-1/+1
| | | | This now includes sh.
* Take more care with errors from setuid().Jérémie Roquet2014-10-311-1/+11
| | | | | This is to ensure the user is aware of errors unsetting the PRIVELEGED option.
* 32768 with further modifications: LOCAL_LOOPS option.Peter Stephenson2014-06-131-0/+1
|
* 32682 with tweaks: Add INC_APPEND_HISTORY_TIME.Peter Stephenson2014-06-061-0/+1
| | | | Revert INC_APPEND_HISTORY behaviour.
* 32634: add POSIX_ARGZERO optionBarton E. Schaefer2014-06-011-0/+1
|
* users:18023: Add PIPEFAIL optionPeter Stephenson2013-10-061-0/+1
|
* 31444: Basic code for enable/disable -pPeter Stephenson2013-06-131-0/+1
|
* users/17665: add FORCE_FLOAT optionPeter Stephenson2013-03-051-0/+1
|
* 30789: Add CONTINUE_ON_ERROR for old behaviour.Peter Stephenson2012-11-151-0/+1
| | | | | New behaviour is for scripts to exit on error instead of returning to top level and executing the next command.
* 30726: make shell options passed to emulate stick along with the emulationPeter Stephenson2012-10-111-13/+5
|
* 30722: fix some cases where emulations or options were not propagated properlyPeter Stephenson2012-10-071-26/+46
| | | | from the emulate command
* 30716: make IGNORECLOSEBRACES an emulation optionPeter Stephenson2012-10-051-1/+1
|
* 30633: "functions -T" only traces marked function, not called functionsPeter Stephenson2012-08-211-1/+1
|
* 30320: "emulate" accepts invocation-time flags; other small doc tweaks.Bart Schaefer2012-03-071-0/+2
|
* 30303: emulate inside function marked for execution tracing enables xtracePeter Stephenson2012-03-011-0/+14
|
* 30101: add HASH_EXECUTABLES_ONLY optionPeter Stephenson2012-01-081-0/+1
|
* 29955++: IGNORE_CLOSE_BRACES optionPeter Stephenson2011-12-081-0/+1
|
* 28424: new POSIX_STRINGS optionPeter Stephenson2010-11-221-1/+2
|
* 28308/28310: HIST_LEX_WORDS, check for quick history readPeter Stephenson2010-10-021-0/+1
|
* 28253: document -h argument to atribute commandsPeter Stephenson2010-09-121-0/+1
|
* 27793 and follow ups: add PATH_SCRIPT option to find script using $PATHPeter Stephenson2010-03-161-0/+1
|
* 27638, based on Frank Terbeck, 27633: SOURCETRACE optionPeter Stephenson2010-01-271-0/+1
|
* Joakim Rosqvist: 27591 as modified in 27594:Peter Stephenson2010-01-131-0/+3
| | | | KEYBOARD_HACK variable
* 27167: add POSIX_CD option to test "." after CDPATHPeter Stephenson2009-07-191-0/+1
|
* 27106: reset status on command that expands to emptyPeter Stephenson2009-07-101-0/+1
| | | | 27122: add POSIX_JOBS option
* 27100: Allow MONITOR option in non-interactive shells for testing.Peter Stephenson2009-07-081-1/+1
|
* 26675: add POSIX_ALIASES optionPeter Stephenson2009-03-031-0/+1
|
* 26546, 26556: sticky emulation for functions defined in emulate ... -c ...Peter Stephenson2009-02-111-4/+22
| | | | environments, plus documentation
* 25641: add emulation option (NO_)MULTI_FUNC_DEFPeter Stephenson2008-09-111-0/+1
|
* 25418: set PROMPT_SUBST for all Bourne-style shellsPeter Stephenson2008-08-071-1/+1
|
* 25415: Make DEBUG_BEFORE_CMD the default.Peter Stephenson2008-08-071-1/+1
| | | | | Reuse ERR_EXIT in DEBUG traps. Clean up trapreturn code.
* 25345, 25347: neaten interface from main shell to zlePeter Stephenson2008-07-311-1/+1
|
* 25149: add C_PRECEDENCES option to make arithmetic have C/Perl precedencePeter Stephenson2008-06-121-0/+1
|