zsh-workers
 help / color / mirror / code / Atom feed
* Weird yodl thing in files.yo
@ 2010-01-21 16:00 Bart Schaefer
  2010-01-21 16:09 ` Mikael Magnusson
  2010-01-21 17:01 ` Andrey Borzenkov
  0 siblings, 2 replies; 3+ messages in thread
From: Bart Schaefer @ 2010-01-21 16:00 UTC (permalink / raw)
  To: zsh-workers

The yodl source is this:

Commands are first read from tt(zshenv()); this cannot be overridden.

What I get in my compiled documentation is this:

Commands are first read from no; this cannot be overridden.

Er, what?

Doc/version.yo:def(zshenv)(0)(no)

This must be because I configure my devel build with global RC files
disabled?


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

* Re: Weird yodl thing in files.yo
  2010-01-21 16:00 Weird yodl thing in files.yo Bart Schaefer
@ 2010-01-21 16:09 ` Mikael Magnusson
  2010-01-21 17:01 ` Andrey Borzenkov
  1 sibling, 0 replies; 3+ messages in thread
From: Mikael Magnusson @ 2010-01-21 16:09 UTC (permalink / raw)
  To: Bart Schaefer; +Cc: zsh-workers

2010/1/21 Bart Schaefer <schaefer@brasslantern.com>:
> The yodl source is this:
>
> Commands are first read from tt(zshenv()); this cannot be overridden.
>
> What I get in my compiled documentation is this:
>
> Commands are first read from no; this cannot be overridden.
>
> Er, what?
>
> Doc/version.yo:def(zshenv)(0)(no)
>
> This must be because I configure my devel build with global RC files
> disabled?

configure.ac does this:

ifdef([zshenv],[undefine([zshenv])])dnl
AC_ARG_ENABLE(zshenv,
AC_HELP_STRING([--enable-zshenv=FILE], [the full pathname of the
global zshenv script]),
[zshenv="$enableval"],
[if test "x$etcdir" = xno; then
  zshenv=no
else
  zshenv="$etcdir/zshenv"
fi])
AH_TEMPLATE([GLOBAL_ZSHENV],
[The global file to source absolutely first whenever zsh is run;
 if undefined, don't source anything.])
if test "x$zshenv" != xno; then
  AC_DEFINE_UNQUOTED(GLOBAL_ZSHENV, "$zshenv")
fi

and later:

AC_SUBST(zshenv)dnl

and same for zshrc, zprofile, zlogin, zlogout.

doc/Makefile.in then does this:

version.yo: $(sdir_top)/Config/version.mk
	( \
...
	  echo 'def(zshenv)(0)(@zshenv@)'; \
	  echo 'def(zprofile)(0)(@zprofile@)'; \
...
	) > $(sdir)/version.yo

-- 
Mikael Magnusson


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

* Re: Weird yodl thing in files.yo
  2010-01-21 16:00 Weird yodl thing in files.yo Bart Schaefer
  2010-01-21 16:09 ` Mikael Magnusson
@ 2010-01-21 17:01 ` Andrey Borzenkov
  1 sibling, 0 replies; 3+ messages in thread
From: Andrey Borzenkov @ 2010-01-21 17:01 UTC (permalink / raw)
  To: zsh-workers

[-- Attachment #1: Type: Text/Plain, Size: 1262 bytes --]

On Thursday 21 of January 2010 19:00:54 Bart Schaefer wrote:
> The yodl source is this:
> 
> Commands are first read from tt(zshenv()); this cannot be overridden.
> 
> What I get in my compiled documentation is this:
> 
> Commands are first read from no; this cannot be overridden.
> 
> Er, what?
> 
> Doc/version.yo:def(zshenv)(0)(no)
> 
> This must be because I configure my devel build with global RC files
> disabled?

I guess so:

version.yo: $(sdir_top)/Config/version.mk
        ( \
          echo 'IFDEF(INCWSLEVEL)(INCWSLEVEL())(STARTDEF())'; \
          echo 'def(version)(0)('$(VERSION)')'; \
          echo 'def(date)(0)('$(VERSION_DATE)')'; \
          echo 'def(zshenv)(0)(@zshenv@)'; \
          echo 'def(zprofile)(0)(@zprofile@)'; \
          echo 'def(zshrc)(0)(@zshrc@)'; \
          echo 'def(zlogin)(0)(@zlogin@)'; \
          echo 'def(zlogout)(0)(@zlogout@)'; \
          echo 'IFDEF(DECWSLEVEL)(DECWSLEVEL())(ENDDEF())#' | tr '#' 
'\\'; \
        ) > $(sdir)/version.yo


The question is - what should be put in documentation in this case? 
Either every place that mentions global files should just be omitted or 
literal /etc/zshenv (et al) with comment that they may differ or be 
skipped entirely.

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

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

end of thread, other threads:[~2010-01-21 17:23 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-01-21 16:00 Weird yodl thing in files.yo Bart Schaefer
2010-01-21 16:09 ` Mikael Magnusson
2010-01-21 17:01 ` Andrey Borzenkov

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).