Re: [Firebird-devel] Stdin redirection with pipe in Windows ISQL

2022-06-16 Thread Adriano dos Santos Fernandes
On Thu, Jun 16, 2022 at 1:38 AM Dmitry Yemanov wrote: > > See: > > > https://github.com/FirebirdSQL/firebird/commit/c8c7c3a44dad9572a55d6fed68f1c399a19366db > > Initially (FB2) the code was: > > if (GetFileType(in) == FILE_TYPE_DISK) >Interactive = false; > > then (circa 2.5) it was changed

Re: [Firebird-devel] Stdin redirection with pipe in Windows ISQL

2022-06-15 Thread Dmitry Yemanov
15.06.2022 22:56, Adriano dos Santos Fernandes wrote: In Linux, when we do: echo "select 1 from rdb\$database; select 2 from rdb\$database;" | isql t.fdb It shows: CONSTANT 1 CONSTANT 2 In Windows, echo select 1 from

Re: [Firebird-devel] Stdin redirection with pipe in Windows ISQL

2022-06-15 Thread Adriano dos Santos Fernandes
On Wed, Jun 15, 2022 at 6:31 PM Dimitry Sibiryakov wrote: > Adriano dos Santos Fernandes wrote 15.06.2022 21:56: > > Are there any reason for that? > >MSYS (and I suspect WSL as well) bash is using unnamed pipes to > redirect > input and output of applications into its window. Without

Re: [Firebird-devel] Stdin redirection with pipe in Windows ISQL

2022-06-15 Thread Dimitry Sibiryakov
Adriano dos Santos Fernandes wrote 15.06.2022 21:56: Are there any reason for that? MSYS (and I suspect WSL as well) bash is using unnamed pipes to redirect input and output of applications into its window. Without considering pipes as console they are blind. I know no way to

[Firebird-devel] Stdin redirection with pipe in Windows ISQL

2022-06-15 Thread Adriano dos Santos Fernandes
Hi! In Linux, when we do: echo "select 1 from rdb\$database; select 2 from rdb\$database;" | isql t.fdb It shows: CONSTANT 1 CONSTANT 2 In Windows, echo select 1 from rdb$database; select 2 from rdb$database; | isql t.fdb It shows: