I'm trying to create a shell script to take an argument and use it to name a terminal tab. So if the script's name is tabnm, tabnm "test" should rename the current tab "test"
This is my code:
#!/bin/sh
echo -ne "\e]1;$1\a"
but when i run it I get this output:
robin@icarus $ sh tabnm.sh test
-ne \e]1;test
If I just run echo -ne "\e]1;Test\a"
straight in the shell, the tab is renamed.