[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Why `exec 3<>/dev/tcp/www.google.com/80` terminates the terminal on macO
From: |
Peng Yu |
Subject: |
Why `exec 3<>/dev/tcp/www.google.com/80` terminates the terminal on macOS? |
Date: |
Tue, 30 Mar 2021 19:11:48 -0500 |
Hi,
https://www.linuxjournal.com/content/more-using-bashs-built-devtcp-file-tcpip
I am trying the following command. But the terminal gets terminated on
macOS but not on Linux. Does anybody know what is wrong?
exec 3<>/dev/tcp/www.google.com/80
$ bash --version
GNU bash, version 5.1.4(1)-release (x86_64-apple-darwin19.6.0)
Copyright (C) 2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
$ bash --version
GNU bash, version 5.1.0(2)-rc2 (x86_64-pc-linux-gnu)
Copyright (C) 2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
--
Regards,
Peng
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Why `exec 3<>/dev/tcp/www.google.com/80` terminates the terminal on macOS?,
Peng Yu <=