[Tcsh] Question on completion

Christos Zoulas christos at zoulas.com
Wed Oct 22 17:29:04 UTC 2025


On 2025-10-20 2:54 am, H.Merijn Brand wrote:
> I am a perl developer and write a lot of perl tooling for work related
> tasks. Most of the times the commands/scripts have a .pl extension.
> 
> Is there a completion-rule that would change
> 
> 
>   % my-tool --option-a --option-b=5 foo bar baz
> 
> to
> 
>   % my-tool.pl --option-a --option-b=5 foo bar baz
> 
> if "my-tool" is *not* available in $PATH, but "my-tool.pl" *is*?
> 
> Other than creation a ton of aliasses

No, but it should be simple to implement via a variable like
execextension=(.pl ...)

and have the exec code go through the list and try them.


christos


More information about the Tcsh mailing list