ARB
Functions
arb_pattern.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

chararb_shell_expand (const char *)
 

Function Documentation

char* arb_shell_expand ( const char str)

Performs shell-like path expansion on

Parameters
str
  • Tilde-Expansion
  • Environment variable substitution
  • Command substitition
  • Arithmetic expansion
  • Wildcard expansion
  • Quote removal

The implementation uses wordexp (see man wordexp).

Returns
Expanded string (must be freed)

Definition at line 22 of file arb_pattern.cxx.

References ARB_strdup(), error(), GB_export_errorf(), GBS_chrcat(), GBS_strcat(), GBS_strclose(), GBS_stropen(), NULp, and result.

Referenced by arb_open_socket().