aboutsummaryrefslogtreecommitdiff
path: root/bin
Commit message (Collapse)AuthorAgeFilesLines
* Avoid subshell on startupUlrich Müller2023-07-081-1/+2
| | | | | | * bin/eselect.in (PATH): Avoid subshell. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* Use printf instead of echoUlrich Müller2023-06-071-1/+1
| | | | | | * bin/eselect.in (PATH): Use printf instead of echo Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* Don't append a spurious newline to PATHUlrich Müller2023-06-071-1/+1
| | | | | | | * bin/eselect.in (PATH): Don't append a spurious newline. Fixes: 81dc05871392f5acbf5fadb5bb1991c737e42a5f Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* Sanitise PATHUlrich Müller2023-06-051-1/+12
| | | | | | | * bin/eselect.in (PATH): Sanitise, remove Portage's internal ebuild-helpers dir from it. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* Quote argument of ":" commandUlrich Müller2023-06-051-3/+3
| | | | | | | | * bin/eselect.in (EPREFIX): Quote argument of ":" command. This avoids globbing, see: https://www.shellcheck.net/wiki/SC2223 Add some more quotes throughout. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* Don't autodetect bash and env-update at configure timeUlrich Müller2023-05-112-3/+2
| | | | | | | | | | | | * bin/eselect.in: Update shebang to use EPREFIX. Bug 905934. * bin/Makefile.am (dosed): Don't substitute BASH. * libs/package-manager.bash.in (env_update): Don't use an absolute path for env-update. * libs/Makefile.am (dosed): Don't substitute ENV_UPDATE. * configure.ac: Drop checks for bash and env-update paths. Bug: https://bugs.gentoo.org/905934 Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* Remove useless exit messageUlrich Müller2023-03-161-1/+1
| | | | | | | * bin/eselect.in (trap): Don't output a message, because die() is verbose enough. Thanks to Florian Schmaus for the suggestion. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* Support NO_COLORUlrich Müller2023-02-281-0/+3
| | | | | | * bin/eselect.in: Disable colours if NO_COLOR is nonempty. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* Update version to 1.4.21eselect-1.4.21Ulrich Müller2023-02-271-1/+1
| | | | Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* New global option --eprefixUlrich Müller2023-02-271-1/+9
| | | | | | | | | * bin/eselect.in: New global option --eprefix. (es_do_help): Document it. * doc/user-guide.txt: * man/eselect.1: Document the --eprefix option. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* Allow EPREFIX to be overridden for manipulating prefixed ROOTJames Le Cuirot2023-02-271-2/+5
| | | | | | | | * bin/eselect.in: Allow EPREFIX to be overridden for manipulating prefixed ROOT. Signed-off-by: James Le Cuirot <chewi@gentoo.org> Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* Error out if --root has no option argumentUlrich Müller2022-01-081-0/+1
| | | | | | * bin/eselect.in: Error out if --root has no option argument. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* New global option --rootUlrich Müller2022-01-081-1/+8
| | | | | | | | | * bin/eselect.in: New global option --root. (es_do_help): Document it. * doc/user-guide.txt: * man/eselect.1: Document the --root option. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* Update copyright years.Ulrich Müller2020-12-161-2/+2
| | | | Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* Update copyright years.Ulrich Müller2019-02-131-2/+2
| | | | Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* Update copyright notices to follow the new policy.Ulrich Müller2018-09-161-2/+2
|
* Update copyright years.Ulrich Müller2018-01-081-2/+2
|
* Update copyright years.Ulrich Müller2017-03-221-2/+2
|
* Happy new year 2016!Ulrich Müller2016-01-271-2/+2
|
* Set umask.Ulrich Müller2016-01-271-0/+2
| | | | * bin/eselect.in: Set umask +rx, bug 572348.
* Happy new year 2015!Ulrich Müller2015-01-171-2/+2
|
* Always parse global options. Respect "--".Ulrich Müller2014-06-051-29/+35
| | | | | | * bin/eselect.in: Parse global options even if we are invoked as something-config or similar. Respect "--" to indicate end of options.
* Use "%" instead of "," as delimiter for sed.Ulrich Müller2014-05-201-4/+4
| | | | | | * bin/Makefile.am (dosed): * libs/Makefile.am (dosed): * man/Makefile.am (dosed): Use "%" instead of "," as delimiter.
* Happy new year 2014!Ulrich Müller2014-01-191-2/+2
|
* New local option --only-names in modules list action.Ulrich Müller2013-11-151-1/+0
| | | | | | | | | | | * modules/modules.eselect (do_list): New local option --only-names will output names of modules only, without their description. This replaces the previous brief output mode behaviour and is mainly intended for bash completion. (describe_list_options): New function, documents --only-names. * bin/eselect.in (es_do_help): Don't force default output mode. * misc/eselect.bashcomp (_eselect): Call "eselect modules list" with --only-names option.
* Function 'colours' accepts an argument. Remove 'nocolours'.Ulrich Müller2013-10-251-2/+2
| | | | | | | * libs/output.bash.in (colours): Accept an argument and handle both enabling and disabling of colour output. (nocolours): Remove function. * bin/eselect.in: Call 'colours' with appropriate argument.
* Rearrange variables.Ulrich Müller2013-10-231-2/+1
|
* Remove deprecated es_do_list_{options,modules} functions.Ulrich Müller2013-10-221-19/+9
| | | | | | * bin/eselect.in (es_do_list_options, es_do_list_modules): Remove deprecated functions. (es_do_help): Move code for listing options and modules to here.
* Remove legacy --no-colour option.Ulrich Müller2013-10-221-3/+0
| | | | | * bin/eselect.in: Remove legacy --no-colour option. Option --colour=no or --colour=never should be used instead.
* Move es_find_module function to core library.Ulrich Müller2013-10-211-15/+0
| | | | | * bin/eselect.in (es_find_module): Move function to core library. * libs/core.bash.in (find_module): Rename and simplify.
* Configure check whether we are building from git.Ulrich Müller2013-08-081-1/+1
| | | | | | * configure.ac: Check whether we are building from git; include git revision in EXTRAVERSION if we do. * bin/Makefile.am (dosed): Append EXTRAVERSION to VERSION.
* Work around bash crashing on Darwin, bug 475284.Ulrich Müller2013-07-061-3/+4
| | | | | | | * bin/eselect.in: Save stderr only in bash 4.1 or later, where automatically assigned file descriptors are available. Using a fixed descriptor makes bash crash on Darwin, bug 475284. * libs/core.bash.in (die): Test for saved file descriptor.
* Restore stderr in die() function, bug 451150.Ulrich Müller2013-01-131-0/+5
| | | | | | | * bin/eselect.in (ESELECT_STDERR): Save stderr file descriptor. * libs/core.bash.in (die): Restore stderr, otherwise there would be no output if die was called while stderr is redirected. Fixes bug 451150. Thanks to Michał Górny <mgorny@gentoo.org>.
* Happy new year 2013!Ulrich Müller2013-01-041-2/+2
|
* Remove trailing slash from ROOT only if EPREFIX is set.Ulrich Müller2012-09-151-1/+1
| | | | | | * bin/eselect.in (EROOT): Remove trailing slash from ROOT only if EPREFIX is set. This guarantees that EROOT is equal to ROOT for empty EPREFIX.
* Remove any trailing backslash from ROOT before appending EPREFIX.Ulrich Müller2012-09-131-1/+1
| | | | | * bin/eselect.in (EROOT): Remove any trailing backslash from ROOT before appending EPREFIX.
* Remove SVN keywords throughout.Ulrich Müller2012-03-071-1/+1
|
* Update years. Fix copyright headers, eselect has always been GPL-2 or later.Ulrich Müller2012-01-211-2/+2
| | | | svn path=/trunk/; revision=859
* New global option --colour=<yes|no|auto>.Ulrich Müller2011-10-281-17/+23
| | | | svn path=/trunk/; revision=854
* Whitespace and minor stylistic changes.Ulrich Müller2011-10-281-16/+16
| | | | svn path=/trunk/; revision=853
* Make relative symlinks.Ulrich Müller2011-05-021-2/+1
| | | | svn path=/trunk/; revision=814
* Happy new year 2011!Ulrich Müller2011-01-081-2/+2
| | | | svn path=/trunk/; revision=790
* Update output of es_do_version from file header.Ulrich Müller2010-02-161-1/+1
| | | | svn path=/trunk/; revision=765
* Happy new year 2010!Ulrich Müller2010-01-011-2/+2
| | | | svn path=/trunk/; revision=752
* Globally replace ec_ by es_ for consistency reasons.Ulrich Müller2009-12-041-18/+18
| | | | svn path=/trunk/; revision=739
* Correct name for Gentoo Prefix, patch from Fabian Groffen.Ulrich Müller2009-11-151-1/+1
| | | | svn path=/trunk/; revision=730
* Mention "--brief" in list of options.Ulrich Müller2009-11-061-1/+1
| | | | svn path=/trunk/; revision=702
* Fix call for ec_do_list_* in ec_do_help.Ulrich Müller2009-10-111-2/+2
| | | | svn path=/trunk/; revision=693
* Don't use hyphens in identifiers for function names.Ulrich Müller2009-10-111-6/+6
| | | | svn path=/trunk/; revision=692
* Don't accept parameters for built-in actions.Ulrich Müller2009-09-181-1/+2
| | | | svn path=/trunk/; revision=658