mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-03-02 12:35:42 +08:00
Indentation, typo and formating fixes. Very minor patch.
darcs-hash:20070908222453-75c98-2236d962f0c9016820063e871fbbeaa42f36ef22.gz
This commit is contained in:
parent
ad02bb9b48
commit
151943f89e
@ -2528,7 +2528,7 @@ static int builtin_source( wchar_t ** argv )
|
||||
sb_printf( sb_err,
|
||||
_( L"%ls: Error while reading file '%ls'\n" ),
|
||||
argv[0],
|
||||
argv[1] );
|
||||
argv[1]?argv[1]:L"<stdin>" );
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -9,15 +9,11 @@ The emit builtin fires a generic fish event. Such events can be caught by specia
|
||||
|
||||
\subsection emit-example Example
|
||||
|
||||
The following code first defines an event handler for the generig
|
||||
The following code first defines an event handler for the generic
|
||||
event named 'test_event', and then emits an event of that type.
|
||||
|
||||
<pre>
|
||||
function event_test --on-event test_event
|
||||
<pre>function event_test --on-event test_event
|
||||
echo event test!!!
|
||||
end
|
||||
|
||||
emit test_event
|
||||
|
||||
</pre>
|
||||
|
||||
emit test_event</pre>
|
1
exec.c
1
exec.c
@ -675,6 +675,7 @@ static int set_child_group( job_t *j, process_t *p, int print_errors )
|
||||
j->command,
|
||||
getpgid( p->pid),
|
||||
j->pgid );
|
||||
|
||||
wperror( L"setpgid" );
|
||||
res = -1;
|
||||
}
|
||||
|
4
main.c
4
main.c
@ -368,8 +368,12 @@ int main( int argc, char **argv )
|
||||
|
||||
rel_filename = str2wcs( file );
|
||||
abs_filename = wrealpath( rel_filename, 0 );
|
||||
|
||||
if( !abs_filename )
|
||||
{
|
||||
abs_filename = wcsdup(rel_filename);
|
||||
}
|
||||
|
||||
reader_push_current_filename( intern( abs_filename ) );
|
||||
free( rel_filename );
|
||||
free( abs_filename );
|
||||
|
Loading…
x
Reference in New Issue
Block a user