#include "dictionary.h"
#include "error.h"
#include "glob.h"
-#include "getline.h"
+#include "getl.h"
#include "lexer.h"
#include "main.h"
#include "settings.h"
#if HAVE_SYS_WAIT_H
#include <sys/wait.h>
#endif
+
+#include "gettext.h"
+#define _(msgid) gettext (msgid)
+#define N_(msgid) msgid
\f
/* Global variables. */
cmd = &commands[state + skip];
- if ( cmd->transition[pgm_state] == STATE_ERROR || ( cmd->debug && ! test_mode ) )
+ if ( cmd->transition[pgm_state] == STATE_ERROR || ( cmd->debug && ! get_testing_mode () ) )
{
skip++;
continue;
find_word (const char *string, size_t *word_len)
{
/* Skip whitespace and asterisks. */
- while (isspace (*string))
+ while (isspace ((unsigned char) *string))
string++;
/* End of string? */
{
if (command->skip_entire_name)
lex_get ();
- if ( command->debug & !test_mode )
+ if ( command->debug & !get_testing_mode () )
goto error;
free_words (words, word_cnt);
return command;
free (words[word_cnt]);
}
- if ( command->debug && !test_mode )
+ if ( command->debug && !get_testing_mode () )
goto error;
free_words (words, word_cnt);
int
cmd_erase (void)
{
- if ( safer_mode() )
+ if (get_safer_mode ())
{
msg (SE, _("This command not allowed when the SAFER option is set."));
return CMD_FAILURE;
execl (shell_fn, shell_process, NULL);
- err_hcf (1);
+ _exit (1);
}
case -1:
{
int code;
- if ( safer_mode() )
+ if (get_safer_mode ())
{
msg (SE, _("This command not allowed when the SAFER option is set."));
return CMD_FAILURE;