FG
💻 Software

bash: execute command given in commandline and don't exit

Fresh7 days ago
Mar 15, 202618685 views
Confidence Score0%
0%

Problem

how do I specifiy a command on the commmandline of bash which shall be executed once inside the new bash after reading ~/.bashrc -- But all this without letting bash exit after the command is finished? I'm fiddling around with a "boot-up-configuration" for terminator where some splits should start …

Error Output

( bash; vim )              # vim waits for the exit of bash...
 bash -c vim                # bash exits after vims exit...
 bash -c 'vim; exec bash' …

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: bash: execute command given in commandline and don't exit

Low Risk

The will replace the current Bash instance with a new one.

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment