summaryrefslogtreecommitdiff
path: root/include/shell.h
blob: 073f18102b45a130988582ee06d12ef0b5854a88 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* SPDX-License-Identifier: GPL-2.0-only */
/*
 * (C) Copyright 2013 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
 */

#ifndef __SHELL_H__
#define __SHELL_H__

int shell_get_last_return_code(void);

int run_shell(void);

#ifdef CONFIG_SHELL_HUSH
char *shell_expand(char *str);
#else
static inline char *shell_expand(char *str)
{
	return strdup(str);
}
#endif

#endif /* __SHELL_H__ */