Different contexts. You can't use ```~``` in ruby. You can in shell.