mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-06 17:31:14 -03:00
Fix two issues on OS X, a non-compatible use of the expr command and a bad init of a socket for the universal variable daemon
darcs-hash:20060109144418-ac50b-c6232eae5b964f66d0638289291340aa66cd5983.gz
This commit is contained in:
@@ -637,7 +637,7 @@ echo $smurf
|
||||
\subsection variables-special Special variables
|
||||
|
||||
The user can change the settings of \c fish by changing the values of
|
||||
certain environment variables.
|
||||
certain environment variables.
|
||||
|
||||
- \c BROWSER, which is the users preferred web browser. If this variable is set, fish will use the specified browser instead of the system default browser to display the fish documentation.
|
||||
- \c CDPATH, which is an array of directories in which to search for the new directory for the \c cd builtin.
|
||||
|
||||
@@ -112,7 +112,7 @@ static int get_socket( int fork_ok )
|
||||
local.sun_family = AF_UNIX;
|
||||
strcpy(local.sun_path, name );
|
||||
free( name );
|
||||
len = strlen(local.sun_path) + sizeof(local.sun_family);
|
||||
len = sizeof(local);
|
||||
|
||||
if( connect( s, (struct sockaddr *)&local, len) == -1 )
|
||||
{
|
||||
|
||||
4
fishd.c
4
fishd.c
@@ -174,8 +174,8 @@ static int get_socket()
|
||||
|
||||
local.sun_family = AF_UNIX;
|
||||
strcpy( local.sun_path, sock_name );
|
||||
len = strlen( local.sun_path ) + sizeof( local.sun_family );
|
||||
|
||||
len = sizeof(local);
|
||||
|
||||
debug(1, L"Connect to socket at %s", sock_name);
|
||||
|
||||
if( ( s = socket( AF_UNIX, SOCK_STREAM, 0 ) ) == -1 )
|
||||
|
||||
@@ -49,7 +49,7 @@ end
|
||||
# situation as well?
|
||||
#
|
||||
|
||||
if expr match "$LANG" ".*UTF" >/dev/null
|
||||
if expr "$LANG" : ".*UTF" >/dev/null
|
||||
if test linux = "$TERM"
|
||||
unicode_start ^/dev/null
|
||||
end
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
function _contains_help -d "Helper function for contains"
|
||||
|
||||
set bullet \*
|
||||
if expr match "$LANG" ".*UTF" >/dev/null
|
||||
if expr "$LANG" : ".*UTF" >/dev/null
|
||||
set bullet \u2022
|
||||
end
|
||||
|
||||
@@ -677,7 +677,7 @@ end
|
||||
function __fish_type_help -d "Help for the type shellscript function"
|
||||
|
||||
set bullet \*
|
||||
if expr match "$LANG" ".*UTF" >/dev/null
|
||||
if expr "$LANG" : ".*UTF" >/dev/null
|
||||
set bullet \u2022
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user