Re: exec/read -s bug?

2018-08-19 Thread Lars Schneider
> On Aug 19, 2018, at 8:45 PM, Lars Schneider wrote: > > >> On Aug 19, 2018, at 6:33 PM, Lars Schneider wrote: >> >> Hi, >> >> consider this script: >> >> #!/bin/bash >> [ "`whoami`" = "root" ] || { &g

Re: exec/read -s bug?

2018-08-19 Thread Lars Schneider
> On Aug 19, 2018, at 6:33 PM, Lars Schneider wrote: > > Hi, > > consider this script: > > #!/bin/bash > [ "`whoami`" = "root" ] || { > exec sudo -u root "$0" "$@" > } > read -s -p "

exec/read -s bug?

2018-08-19 Thread Lars Schneider
Hi, consider this script: #!/bin/bash [ "`whoami`" = "root" ] || { exec sudo -u root "$0" "$@" } read -s -p "enter stuff: " stuff If I run the script as normal user (not root!) and I abort the "read -s -p" call with "ctrl-c", then my shell is still in si