Hi!
Is there any way to tell bash to do something like this? If there isn't, I
think it would be nice to have it (maybe through a builtin or something).
int p1[2];
int p2[2];
pipe(p1);
pipe(p2);
if (fork () == 0)
{
close (0); dup (p1[0]);
close (1); dup (p2[1]);
exec(whatever);
Hello,
The command
echo "${PATH//:/$'\n'}"
yields
/usr/bin'
'/bin'
'/usr/X11R6/bin
while
newline=$'\n'
echo "${PATH//:/$newline}"
yields
/usr/bin
/bin
/usr/X11R6/bin
Is this by intention?
$ bash --version
GNU bash, version 3.00.16(1)-release (i386-redhat-linux-gnu)
Configuration Information [Automatically generated, do not change]:
Machine: i386
OS: linux-gnu
Compiler: i386-redhat-linux-gcc
Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i386'
-DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i386-redhat-linux-gnu'
-DCONF_VENDOR='redhat' -DLOCALEDIR='/usr/