> 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
> 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 "
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