Commit graph

16 commits

Author SHA1 Message Date
Yorhel
c08340ee08 Year + version bump for 1.18.1 2023-02-12 08:44:13 +01:00
Yorhel
dc78e8db19 Properly mark functions without arguments as (void)
Fixes compilation with -Werror=old-style-definition
2022-11-05 10:54:37 +01:00
Yorhel
683eb26ad1 Year + version bump for 1.17 2022-04-28 11:19:27 +02:00
François Revol
e29a42a02a Some more compatibility improvements for C89 environments
This compiles now fine with gcc 2.95 on Haiku.
2022-02-08 10:02:10 +01:00
Yorhel
15ebd21195 Some compatibility improvements for older (C89) environments
Whether this actually works on older environments, I don't really know.
2022-02-07 13:28:15 +01:00
Yorhel
f982af81b0 Year + version bump for 1.16 2021-07-02 13:30:55 +02:00
Yorhel
a6b4aead43 Add $NCDU_LEVEL environment variable when spawning a shell
Similar to $SHLVL and $RANGER_LEVEL.
2021-05-12 16:30:43 +02:00
Christian Göttsche
70f439d9a9 Enforce const correctness on strings
(cherry picked from commit 9801f46ece)
2020-04-08 10:53:21 +02:00
Yorhel
8d58297328 Year + version bump for 1.14.2 2020-02-10 16:02:26 +01:00
Yorhel
b6ddd491b3 Year + version bump for 1.14 2019-02-04 17:30:22 +01:00
Yorhel
14afd92ba2 Year + version bump for 1.13 2018-01-29 11:58:14 +01:00
Yorhel
e4f211db68 Year + version bump for 1.12 2016-08-24 20:59:58 +02:00
Øyvind A. Holm
7be85679c5 Check for NCDU_SHELL environment variable when spawning shell
Check if the environment variable NCDU_SHELL is defined before the SHELL
variable is checked. This makes it possible to specify a program to
execute when 'b' is pressed. Setting SHELL to for example "mc" (Midnight
Commander) didn't work because mc already uses SHELL to execute
commands.
2015-06-02 04:06:09 +02:00
Yorhel
29f347c19c shell.c: Include sys/wait.h
Required for the W* macros on OpenBSD. Reported by Brian Callahan.
2015-04-07 10:39:46 +02:00
Yorhel
777db9a5df Minor fixes to new shell feature
The check for the system() exit status is slightly problematic, because
bash returns the status code of the last command it executed. I've set
it to only check for status code 127 now (command not found) in order to
at least provide a message when the $SHELL command can't be found. This
error can still be triggered when executing a nonexistant command within
the shell and then exiting.
2014-12-14 15:13:38 +01:00
Thomas Jarosch
a25e5f80a5 Add ability to spawn shell
Key 'b' in the browse window spawns a shell in the current directoy.

We first check the $SHELL environment variable of the user for the preferred
shell interpreter. If it's not set, we fall back to the compile time
configured default shell (usually /bin/bash).

Signed-off-by: Thomas Jarosch <thomas.jarosch@intra2net.com>
2014-12-14 09:16:27 +01:00