Generally, my /bin/bash shell exits after finishing executing the commands specified in -c list. Is there a way to keep the shell still open after all the commands are done?
            Asked
            
        
        
            Active
            
        
            Viewed 55 times
        
    0
            
            
         
    
    
        ilya1725
        
- 4,496
- 7
- 43
- 68
- 
                    2See https://unix.stackexchange.com/questions/123103/how-to-keep-bash-running-after-command-execution – mkrieger1 Mar 03 '20 at 21:37
- 
                    Really just `bash -c 'cmd1; cmd2; bash'` – KamilCuk Mar 03 '20 at 21:38
- 
                    @KamilCuk last command should probably be `exec bash` – jordanm Mar 03 '20 at 21:40
- 
                    @CharlesDuffy: running a Docker image. I'd like pass it a `/bin/bash` with some commands. Then leave the shell open. – ilya1725 Mar 03 '20 at 21:50
- 
                    @CharlesDuffy: exported functions are good enough – ilya1725 Mar 03 '20 at 22:29