help-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Help-bash] Where is the exit coming from when invoking bash -i from com


From: Peng Yu
Subject: [Help-bash] Where is the exit coming from when invoking bash -i from command line?
Date: Tue, 10 May 2016 23:01:07 -0500

Hi, I see `exit` is shown below. But I don't understand where it is
coming from. Does anybody know?

~$ cat main.sh
#!/usr/bin/env bash
# vim: set noexpandtab tabstop=2:

bash --init-file <(echo "export PS1='\u '") -i <<'EOF'

EOF
~$ ./main.sh
testuser
testuser exit
$ echo $USER
testuser

-- 
Regards,
Peng



reply via email to

[Prev in Thread] Current Thread [Next in Thread]