mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-08 04:35:32 +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
|
@ -2526,9 +2526,9 @@ static int builtin_source( wchar_t ** argv )
|
||||||
if( res )
|
if( res )
|
||||||
{
|
{
|
||||||
sb_printf( sb_err,
|
sb_printf( sb_err,
|
||||||
_( L"%ls: Error while reading file '%ls'\n" ),
|
_( L"%ls: Error while reading file '%ls'\n" ),
|
||||||
argv[0],
|
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
|
\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.
|
event named 'test_event', and then emits an event of that type.
|
||||||
|
|
||||||
<pre>
|
<pre>function event_test --on-event test_event
|
||||||
function event_test --on-event test_event
|
|
||||||
echo event test!!!
|
echo event test!!!
|
||||||
end
|
end
|
||||||
|
|
||||||
emit test_event
|
emit test_event</pre>
|
||||||
|
|
||||||
</pre>
|
|
||||||
|
|
15
exec.c
15
exec.c
|
@ -668,13 +668,14 @@ static int set_child_group( job_t *j, process_t *p, int print_errors )
|
||||||
if( getpgid( p->pid) != j->pgid && print_errors )
|
if( getpgid( p->pid) != j->pgid && print_errors )
|
||||||
{
|
{
|
||||||
debug( 1,
|
debug( 1,
|
||||||
_( L"Could not send process %d, '%ls' in job %d, '%ls' from group %d to group %d" ),
|
_( L"Could not send process %d, '%ls' in job %d, '%ls' from group %d to group %d" ),
|
||||||
p->pid,
|
p->pid,
|
||||||
p->argv[0],
|
p->argv[0],
|
||||||
j->job_id,
|
j->job_id,
|
||||||
j->command,
|
j->command,
|
||||||
getpgid( p->pid),
|
getpgid( p->pid),
|
||||||
j->pgid );
|
j->pgid );
|
||||||
|
|
||||||
wperror( L"setpgid" );
|
wperror( L"setpgid" );
|
||||||
res = -1;
|
res = -1;
|
||||||
}
|
}
|
||||||
|
|
8
main.c
8
main.c
|
@ -368,8 +368,12 @@ int main( int argc, char **argv )
|
||||||
|
|
||||||
rel_filename = str2wcs( file );
|
rel_filename = str2wcs( file );
|
||||||
abs_filename = wrealpath( rel_filename, 0 );
|
abs_filename = wrealpath( rel_filename, 0 );
|
||||||
|
|
||||||
if( !abs_filename )
|
if( !abs_filename )
|
||||||
|
{
|
||||||
abs_filename = wcsdup(rel_filename);
|
abs_filename = wcsdup(rel_filename);
|
||||||
|
}
|
||||||
|
|
||||||
reader_push_current_filename( intern( abs_filename ) );
|
reader_push_current_filename( intern( abs_filename ) );
|
||||||
free( rel_filename );
|
free( rel_filename );
|
||||||
free( abs_filename );
|
free( abs_filename );
|
||||||
|
@ -379,8 +383,8 @@ int main( int argc, char **argv )
|
||||||
if( res )
|
if( res )
|
||||||
{
|
{
|
||||||
debug( 1,
|
debug( 1,
|
||||||
_(L"Error while reading file %ls\n"),
|
_(L"Error while reading file %ls\n"),
|
||||||
reader_current_filename()?reader_current_filename(): _(L"Standard input") );
|
reader_current_filename()?reader_current_filename(): _(L"Standard input") );
|
||||||
}
|
}
|
||||||
reader_pop_current_filename();
|
reader_pop_current_filename();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user