Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: tilde compleation



>in zsh 2.5.03 is there a problem with tilde (~) compleation from within
>shell scripts?  Or am I simply doing something moronic?  (entirely
>posible.)

I think you mean expansion, not completion.

>           What I am doing is running some shell scripts that other people
>have written (mostly for ksh) from my zsh shell.  They don't have the line
>#!/usr/bin/ksh
>in the top, and when they do, things tend to work.

If your shell scripts don't have a #! line, and you're executing (as
opposed to sourcing) them, they will probably be processed by /bin/sh.
If /bin/sh is a Bourne shell, it won't do tilde expansion.

-zefram




Messages sorted by: Reverse Date, Date, Thread, Author