No Ubuntu, executei ls *tags* -ls
quando meu diretório atual está /usr/bin
e o resultado é:
0 lrwxrwxrwx 1 root root 23 Apr 8 2024 ctags -> /etc/alternatives/ctags
304 -rwxr-xr-x 1 root root 309024 Apr 8 2024 ctags-exuberant
0 lrwxrwxrwx 1 root root 23 Apr 8 2024 etags -> /etc/alternatives/etags
4 -rwxr-xr-x 1 root root 2514 Aug 27 2024 helpztags
E o resultado ls *tags* -ls
quando estou no diretório /etc/alternatives/ é:
0 lrwxrwxrwx 1 root root 24 Apr 8 2024 ctags -> /usr/bin/ctags-exuberant
0 lrwxrwxrwx 1 root root 40 Apr 8 2024 ctags.1.gz -> /usr/share/man/man1/ctags-exuberant.1.gz
0 lrwxrwxrwx 1 root root 24 Apr 8 2024 etags -> /usr/bin/ctags-exuberant
0 lrwxrwxrwx 1 root root 40 Apr 8 2024 etags.1.gz -> /usr/share/man/man1/ctags-exuberant.1.gz
Então, parece que ambos etags
e ctags
referem-se ao mesmo binário ( /usr/bin/ctags-exuberant
).
Minha pergunta é, quando executo ctags o nome do arquivo de saída é tags
, mas quando executo etags o nome do arquivo de saída é TAGS
(sem -o
opção para ambos os casos). Como ele é definido?