fixed bash prompt hack: now it ignores rc (thanks, straintcmp)
This commit is contained in:
parent
64f673c00b
commit
c76d7b350e
2
demo.sh
2
demo.sh
@ -46,7 +46,7 @@ function prompt()
|
|||||||
{
|
{
|
||||||
invalidcmd="somethingthatshouldbetotallynotacommandinanygivenenvironment"
|
invalidcmd="somethingthatshouldbetotallynotacommandinanygivenenvironment"
|
||||||
expPS1=$(echo $invalidcmd |
|
expPS1=$(echo $invalidcmd |
|
||||||
bash -i 2>&1 |
|
bash --norc -i 2>&1 |
|
||||||
grep $invalidcmd |
|
grep $invalidcmd |
|
||||||
head -n 1 |
|
head -n 1 |
|
||||||
sed "s/$invalidcmd//g")
|
sed "s/$invalidcmd//g")
|
||||||
|
Loading…
Reference in New Issue
Block a user