Skip to main content
added 69 characters in body
Source Link
Marcus Müller
  • 51.5k
  • 4
  • 79
  • 121

-c doesn't create a subshell; it just creates a non-interactive new shell (or rather, a non-interactive execution environment in a separate process that has nothing to do with your current shell). And: in non-interactive shells, the history command is intentionally non-functional:

History command inside bash script

-c doesn't create a subshell; it just creates a non-interactive new shell (or rather, a non-interactive execution environment). And: in non-interactive shells, the history command is intentionally non-functional:

History command inside bash script

-c doesn't create a subshell; it just creates a non-interactive new shell (or rather, a non-interactive execution environment in a separate process that has nothing to do with your current shell). And: in non-interactive shells, the history command is intentionally non-functional:

History command inside bash script

added link
Source Link
Kamil Maciorowski
  • 24.5k
  • 2
  • 69
  • 129

-c doesn't create a subshell-c doesn't create a subshell; it just creates a non-interactive new shell (or rather, a non-interactive execution environment). And: in non-interactive shells, the history command is intentionally non-functional:

History command inside bash script

-c doesn't create a subshell; it just creates a non-interactive new shell (or rather, a non-interactive execution environment). And: in non-interactive shells, the history command is intentionally non-functional:

History command inside bash script

-c doesn't create a subshell; it just creates a non-interactive new shell (or rather, a non-interactive execution environment). And: in non-interactive shells, the history command is intentionally non-functional:

History command inside bash script

Source Link
Marcus Müller
  • 51.5k
  • 4
  • 79
  • 121

-c doesn't create a subshell; it just creates a non-interactive new shell (or rather, a non-interactive execution environment). And: in non-interactive shells, the history command is intentionally non-functional:

History command inside bash script