zsh-workers
 help / color / mirror / code / Atom feed
* Problem with an exported array
@ 2003-09-22  8:30 DervishD
  2003-09-22  9:08 ` Oliver Kiddle
  0 siblings, 1 reply; 22+ messages in thread
From: DervishD @ 2003-09-22  8:30 UTC (permalink / raw)
  To: Zsh

    Hi all :)

    Instead of turning on SHWORDSPLIT or using ${=PAGER}, I decided
to set PAGER as an array recently, with the following:

    typeset -gxa PAGER
    PAGER=(/bin/view -)

    In fact, if I do 'whatever | $PAGER' it works. The problem is
that PAGER is not exported to the environment of commands!. So, if I
do now 'man whatever', 'man' barfs saying that it cannot find
/usr/bin/pager, the default pager for man. But if I do something
like 'PAGER=$PAGER man whatever', it works perfectly. Aren't arrays
exported? If I do the following:

    typeset -gx PAGER="/bin/view -"

    then 'man' works OK. Am I doing something wrong or is just that
arrays cannot be exported? BTW I'm using zsh 4.0.7

    Thanks in advance.

    Raúl Núñez de Arenas Coronado

-- 
Linux Registered User 88736
http://www.pleyades.net & http://raul.pleyades.net/


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

end of thread, other threads:[~2003-09-24 13:59 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-09-22  8:30 Problem with an exported array DervishD
2003-09-22  9:08 ` Oliver Kiddle
2003-09-22  9:31   ` DervishD
2003-09-22  9:48   ` Peter Stephenson
2003-09-22 11:33     ` DervishD
2003-09-22 13:44       ` Peter Stephenson
2003-09-22 14:04         ` DervishD
2003-09-22 14:22         ` Bart Schaefer
2003-09-22 14:45           ` Danek Duvall
2003-09-22 16:30             ` DervishD
2003-09-22 17:58             ` Bart Schaefer
2003-09-22 18:06               ` Danek Duvall
2003-09-22 15:52           ` Peter Stephenson
2003-09-22 17:44             ` DervishD
2003-09-22 18:03               ` Bart Schaefer
2003-09-23  7:52                 ` DervishD
2003-09-22 19:28             ` Wayne Davison
2003-09-23  9:44               ` Peter Stephenson
2003-09-23  7:57             ` Oliver Kiddle
2003-09-23 16:02               ` Peter Stephenson
2003-09-24 13:09                 ` DervishD
2003-09-22 16:33           ` DervishD

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