zsh-users
 help / color / mirror / code / Atom feed
* Autoloaded bash shell scripts treated as zsh
@ 2005-03-07 23:41 zzapper
  2005-03-08  6:05 ` Bart Schaefer
  0 siblings, 1 reply; 5+ messages in thread
From: zzapper @ 2005-03-07 23:41 UTC (permalink / raw)
  To: zsh-users

Hi,
I used a tip from one of the faqs (Peter Stephenson I think) to autoload all my 
zsh shell scripts.

autoload ${fpath[1]}/*(:t)  #autoload all functions in $fpath

As I also use the same directory for my legacy bash scripts, I was unpleasantly 
surprised to find that these scripts had also been autoloaded and were now being 
treated as zsh scripts.

Easy to fix, either I make the scripts zsh compatible or move them elsewhere.

Q1)
But is that expected behaviour (latest zsh on cygwin)?

Q2)
I was surprised to what extent my bash scripts worked as zsh (mostly only 
required the adding of a pre-declaration of any variables), is a reasonable 
proportion of bash available from within zsh?


zzapper

BTW this is posted via http://post.gmane.org/post.php?group=gmane.comp.shells.
zsh.user


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2005-03-08 10:38 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-03-07 23:41 Autoloaded bash shell scripts treated as zsh zzapper
2005-03-08  6:05 ` Bart Schaefer
2005-03-08 10:21   ` zzapper
2005-03-08 10:26     ` Peter Stephenson
2005-03-08 10:36       ` zzapper

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).