On Sun, 17 Jul 2011 09:51:12 +0000, Mark Morgan Lloyd wrote about Re:
RE : RE : RE : [fpc-devel] Running programs with output redirection:

>Ludo Brands wrote:
[snip]
>> {$IFDEF LINUX}
>>   p.CommandLine := 'bash -c "diff -r dir1 dir2 > diff.txt"';
>> {$ENDIF}
>>   p.Execute;
>
>Might be safer to refer to sh rather than bash in this context, since 
>Debian and Ubuntu are moving from Bash to Dash with sh being an 
>appropriate symlink.

Even better would be to use the SHELL environment variable.  This is
established by the login shell and reflects each user's default shell,
as per /etc/passwd.
-- 
Regards,

Dave  [RLU #314465]
=======================================================================
david.w.n...@ntlworld.com (David W Noon)
=======================================================================

Attachment: signature.asc
Description: PGP signature

_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to