mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-08 02:31:18 -03:00
More work towards instanced parser
This commit is contained in:
15
env.cpp
15
env.cpp
@@ -247,11 +247,7 @@ static void clear_hash_entry( void *key, void *data )
|
||||
*/
|
||||
static void start_fishd()
|
||||
{
|
||||
string_buffer_t cmd;
|
||||
struct passwd *pw;
|
||||
|
||||
sb_init( &cmd );
|
||||
pw = getpwuid(getuid());
|
||||
struct passwd *pw = getpwuid(getuid());
|
||||
|
||||
debug( 3, L"Spawning new copy of fishd" );
|
||||
|
||||
@@ -261,12 +257,9 @@ static void start_fishd()
|
||||
return;
|
||||
}
|
||||
|
||||
sb_printf( &cmd, FISHD_CMD, pw->pw_name );
|
||||
|
||||
eval( (wchar_t *)cmd.buff,
|
||||
0,
|
||||
TOP );
|
||||
sb_destroy( &cmd );
|
||||
wcstring cmd = format_string(FISHD_CMD, pw->pw_name);
|
||||
parser_t parser(PARSER_TYPE_GENERAL);
|
||||
parser.eval( cmd.c_str(), 0, TOP );
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user