What do you get when you enter
echo $-net-nic (dashes NOT underscore)
~]$ echo $-net-nic
himBHsnet-nic
On Tue, 16 Feb 2021 17:08:04 -0500, faeychild
<faeychild@nomail.afraid.org> wrote:
What do you get when you enter
echo $-net-nic (dashes NOT underscore)
~]$ echo $-net-nic
himBHsnet-nic
The $- has a specific meaning in bash ...
$ echo $-
himBHs
In the section "Special Parameters" of "man bash"
- Expands to the current option flags as specified
upon invocation, by the set builtin command, or those set by the
shell itself (such as the -i option).
What do you get when you enter
echo $-net-nic (dashes NOT underscore)
~]$ echo $-net-nic
himBHsnet-nic
~]$ echo $_net_nic
enp0s31f6
A typo turns up something interesting.
On Wed, 17 Feb 2021 09:08:04 +1100, faeychild wrote:
What do you get when you enter
echo $-net-nic (dashes NOT underscore)
~]$ echo $-net-nic
himBHsnet-nic
I get the same thing
~]$ echo $_net_nic
enp0s31f6
A typo turns up something interesting.
On Tue, 16 Feb 2021 17:08:04 -0500, faeychild
<faeychild@nomail.afraid.org> wrote:
What do you get when you enter
echo $-net-nic (dashes NOT underscore)
~]$ echo $-net-nic
himBHsnet-nic
The $- has a specific meaning in bash ...
$ echo $-
himBHs
In the section "Special Parameters" of "man bash"
- Expands to the current option flags as specified upon
invocation, by the set builtin command, or those set by the shell itself (such as the -i
option).
Regards, Dave Hodgins
On Wed, 17 Feb 2021 09:08:04 +1100, faeychild wrote:
What do you get when you enter
echo $-net-nic (dashes NOT underscore)
~]$ echo $-net-nic
himBHsnet-nic
I get the same thing
~]$ echo $_net_nic
enp0s31f6
A typo turns up something interesting.
$- displays a bunch of bash flags, that have probably been turned on by default.
h Remember the location of commands as they are looked up for execution. This
is enabled by default
(I am not sure what that means)
$- displays a bunch of bash flags, that have probably been turned on
by default.
h Remember the location of commands as they are looked up for
execution. This is enabled by default
(I am not sure what that means)
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 482 |
Nodes: | 16 (2 / 14) |
Uptime: | 64:16:12 |
Calls: | 9,569 |
Files: | 13,663 |
Messages: | 6,143,739 |