Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
inconsistent behavior observed with export VAR=VAL versus VAR=VAL zsh 4.2.6
- X-seq: zsh-workers 23773
- From: Nex Magik <nexmagik@xxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: inconsistent behavior observed with export VAR=VAL versus VAR=VAL zsh 4.2.6
- Date: Fri, 17 Aug 2007 12:29:27 -0700 (PDT)
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=5E35K4nwDupiP76iqoy2f+jVU/4rx3DQXA/X3Sjmpg1lCmz/L/41UFgCamsJTAdZjnTcSgfcKRxRGVKmkdnQ19Ex6uD+OU6m5QrCgrC/Zxmvb6NDOcb5hBuIH5O+Ja1zy42HDZaU2XSqMpPDoi0NjBYtX1HMTZWlubkP2qN4Kyo=;
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
This is a strange issue, it has a workaround, but its still strange.
The very short way to see it is to try to append an expression
with spaces in it to a variable.
Please take a look at the first text attachment for the demonstration
of this issue. The second file contains my settings.
in short, the bug is shown after doing env -i PATH=$PATH zsh -f
Please email me directly.
Thank you.
-jason kim
____________________________________________________________________________________
Need a vacation? Get great deals
to amazing places on Yahoo! Travel.
http://travel.yahoo.com/
stimpy% Y="foo bar"
stimpy% echo $Y
foo bar
stimpy% Z=$(/bin/echo $Y)
stimpy% echo $Z
foo bar
stimpy% Z=$(/bin/echo $Y):$PATH
stimpy% echo $Z
foo bar:/tmp/opt/spi/RapiDev_99a-RC1/tools/bin:/opt/gcc-3.2.3/bin:/opt/python-2.4.4/bin:/usr/local/bin:/bin:/usr/bin:/home/jkim/bin/exec/i686-Linux2:/home/jkim/bin/shell:/home/jkim/bin/shell/LOGIN/i686-Linux2
stimpy% export Z=$(/bin/echo $Y):$PATH
export: not an identifier: bar:/tmp/opt/spi/RapiDev_99a-RC1/tools/bin:/opt/gcc-3.2.3/bin:/opt/python-2.4.4/bin:/usr/local/bin:/bin:/usr/bin:/home/jkim/bin/exec/i686-Linux2:/home/jkim/bin/shell:/home/jkim/bin/shell/LOGIN/i686-Linux2
stimpy
stimpy:i686-Linux2:/tmp/opt/spi/RapiDev_99a-RC1/demo/fir>env -i PATH=$PATH zsh -f
stimpy%
stimpy%
stimpy% set
'!'=0
'#'=0
'$'=21495
'*'=()
-=569XZfims
0=zsh
'?'=0
@=()
ARGC=0
BAUD=38400
CDPATH=''
COLUMNS=204
CPUTYPE=i686
EGID=29000
ERRNO=2
EUID=29098
FCEDIT=vi
FIGNORE=''
FPATH=/usr/local/share/zsh/site-functions:/usr/local/share/zsh/4.2.6/functions
GID=29000
HISTCHARS='!^#'
HISTCMD=1
HISTSIZE=30
HOME=/home/jkim
HOST=stimpy.spi.local
IFS='
'
KEYTIMEOUT=40
LINENO=3
LINES=71
LISTMAX=100
LOGCHECK=60
LOGNAME=jkim
MACHTYPE=i686
MAILCHECK=60
MAILPATH=''
MANPATH=''
MODULE_PATH=/usr/local/lib/zsh/4.2.6
NULLCMD=cat
OLDPWD=/tmp/opt/spi/RapiDev_99a-RC1/demo/fir
OPTARG=''
OPTIND=1
OSTYPE=linux-gnu
PATH=/tmp/opt/spi/RapiDev_99a-RC1/tools/bin:/opt/gcc-3.2.3/bin:/opt/python-2.4.4/bin:/usr/local/bin:/bin:/usr/bin:/home/jkim/bin/exec/i686-Linux2:/home/jkim/bin/shell:/home/jkim/bin/shell/LOGIN/i686-Linux2
POSTEDIT=''
PPID=3009
PROMPT='%m%# '
PROMPT2='%_> '
PROMPT3='?# '
PROMPT4='+%N:%i> '
PS1='%m%# '
PS2='%_> '
PS3='?# '
PS4='+%N:%i> '
PSVAR=''
PWD=/tmp/opt/spi/RapiDev_99a-RC1/demo/fir
RANDOM=28135
READNULLCMD=more
RPROMPT=''
RPROMPT2=''
RPS1=''
RPS2=''
SAVEHIST=0
SECONDS=4
SHLVL=1
SPROMPT='zsh: correct '\''%R'\'' to '\''%r'\'' [nyae]? '
TERM=''
TIMEFMT='%J %U user %S system %P cpu %*E total'
TMPPREFIX=/tmp/zsh
TRY_BLOCK_ERROR=-1
TTY=/dev/pts/3
TTYIDLE=0
UID=29098
USERNAME=jkim
VENDOR=pc
WATCH=''
WATCHFMT='%n has %a %l from %m.'
WORDCHARS='*?_-.[]~=/&;!#$%^(){}<>'
ZSH_NAME=zsh
ZSH_VERSION=4.2.6
_=set
aliases
argv=()
builtins
cdpath=()
commands
dirstack
dis_aliases
dis_builtins
dis_functions
dis_galiases
dis_reswords
fignore=()
fpath=(/usr/local/share/zsh/site-functions /usr/local/share/zsh/4.2.6/functions)
funcstack
functions
galiases
histchars='!^#'
history
historywords
jobdirs
jobstates
jobtexts
keymaps
mailpath=()
manpath=()
module_path=(/usr/local/lib/zsh/4.2.6)
modules
nameddirs
options
parameters
path=(/tmp/opt/spi/RapiDev_99a-RC1/tools/bin /opt/gcc-3.2.3/bin /opt/python-2.4.4/bin /usr/local/bin /bin /usr/bin /home/jkim/bin/exec/i686-Linux2 /home/jkim/bin/shell /home/jkim/bin/shell/LOGIN/i686-Linux2)
pipestatus=()
prompt='%m%# '
psvar=()
reswords
signals=(EXIT HUP INT QUIT ILL TRAP ABRT BUS FPE KILL USR1 SEGV USR2 PIPE ALRM TERM STKFLT CHLD CONT STOP TSTP TTIN TTOU URG XCPU XFSZ VTALRM PROF WINCH POLL PWR SYS ZERR DEBUG)
status=0
termcap
terminfo
userdirs
watch=()
widgets
stimpy% setopts
zsh: command not found: setopts
stimpy% setopts
interactive
monitor
norcs
shinstdin
zle
stimpy% setopt
interactive
monitor
norcs
shinstdin
zle
stimpy%
stimpy% stty erase
stty: missing argument to `erase'
Try `stty --help' for more information.
stimpy% stty erase ^?
stimpy%
stimpy%
stimpy% stty =-a
stimpy%
stimpy% export TERM=xterm
stimpy%
stimpy%
stimpy% ls -l
total 544
-r--r--r-- 1 jkim eng 1968 Aug 15 19:30 README
-r-xr-xr-x 1 jkim eng 901 Aug 15 19:30 build.sh
-r-xr-xr-x 1 jkim eng 720 Aug 15 19:30 build_beta.sh
-r--r--r-- 1 jkim eng 2388 Aug 15 19:30 fir.h
-rwxr-xr-x 1 jkim eng 410346 Aug 17 10:32 fir.host
-r--r--r-- 1 jkim eng 12980 Aug 15 19:30 fir.sc
-r--r--r-- 1 jkim eng 7166 Aug 15 19:30 fir_64bp.sc
-r--r--r-- 1 jkim eng 7037 Aug 15 19:30 fir_64br.sc
-r--r--r-- 1 jkim eng 14929 Aug 15 19:30 fir_64ip.sc
-r--r--r-- 1 jkim eng 14788 Aug 15 19:30 fir_64ir.sc
-r--r--r-- 1 jkim eng 2934 Aug 15 19:30 fir_8bp.sc
-r--r--r-- 1 jkim eng 2775 Aug 15 19:30 fir_8br.sc
-r--r--r-- 1 jkim eng 5047 Aug 15 19:30 fir_8ip.sc
-r--r--r-- 1 jkim eng 4887 Aug 15 19:30 fir_8ir.sc
-r--r--r-- 1 jkim eng 4094 Aug 15 19:30 fir_8mp.sc
-r--r--r-- 1 jkim eng 3760 Aug 15 19:30 fir_8mr.sc
-r--r--r-- 1 jkim eng 6336 Aug 15 19:30 fir_fns.h
-r--r--r-- 1 jkim eng 1764 Aug 15 19:30 fir_ref.c
-r-xr-xr-x 1 jkim eng 407 Aug 15 19:30 perf.sh
-r-xr-xr-x 1 jkim eng 465 Aug 15 19:30 test.sh
drwxr-xr-x 2 jkim eng 4096 Aug 17 10:32 tmp
stimpy%
stimpy%
stimpy%
stimpy%
stimpy:i686-Linux2:/tmp/opt/spi/RapiDev_99a-RC1/demo/fir>env -i PATH=$PATH zsh -f
stimpy% export TERM=z
stimpy% export TERM=xterm
stimpy%
stimpy% set
'!'=0
'#'=0
'$'=21687
'*'=()
-=569XZfims
0=zsh
'?'=0
@=()
ARGC=0
BAUD=38400
CDPATH=''
COLUMNS=204
CPUTYPE=i686
EGID=29000
ERRNO=0
EUID=29098
FCEDIT=vi
FIGNORE=''
FPATH=/usr/local/share/zsh/site-functions:/usr/local/share/zsh/4.2.6/functions
GID=29000
HISTCHARS='!^#'
HISTCMD=2
HISTSIZE=30
HOME=/home/jkim
HOST=stimpy.spi.local
IFS='
'
KEYTIMEOUT=40
LINENO=3
LINES=71
LISTMAX=100
LOGCHECK=60
LOGNAME=jkim
MACHTYPE=i686
MAILCHECK=60
MAILPATH=''
MANPATH=''
MODULE_PATH=/usr/local/lib/zsh/4.2.6
NULLCMD=cat
OLDPWD=/tmp/opt/spi/RapiDev_99a-RC1/demo/fir
OPTARG=''
OPTIND=1
OSTYPE=linux-gnu
PATH=/tmp/opt/spi/RapiDev_99a-RC1/tools/bin:/opt/gcc-3.2.3/bin:/opt/python-2.4.4/bin:/usr/local/bin:/bin:/usr/bin:/home/jkim/bin/exec/i686-Linux2:/home/jkim/bin/shell:/home/jkim/bin/shell/LOGIN/i686-Linux2
POSTEDIT=''
PPID=3009
PROMPT='%m%# '
PROMPT2='%_> '
PROMPT3='?# '
PROMPT4='+%N:%i> '
PS1='%m%# '
PS2='%_> '
PS3='?# '
PS4='+%N:%i> '
PSVAR=''
PWD=/tmp/opt/spi/RapiDev_99a-RC1/demo/fir
RANDOM=26402
READNULLCMD=more
RPROMPT=''
RPROMPT2=''
RPS1=''
RPS2=''
SAVEHIST=0
SECONDS=15
SHLVL=1
SPROMPT='zsh: correct '\''%R'\'' to '\''%r'\'' [nyae]? '
TERM=xterm
TIMEFMT='%J %U user %S system %P cpu %*E total'
TMPPREFIX=/tmp/zsh
TRY_BLOCK_ERROR=-1
TTY=/dev/pts/3
TTYIDLE=0
UID=29098
USERNAME=jkim
VENDOR=pc
WATCH=''
WATCHFMT='%n has %a %l from %m.'
WORDCHARS='*?_-.[]~=/&;!#$%^(){}<>'
ZSH_NAME=zsh
ZSH_VERSION=4.2.6
_=set
aliases
argv=()
builtins
cdpath=()
commands
dirstack
dis_aliases
dis_builtins
dis_functions
dis_galiases
dis_reswords
fignore=()
fpath=(/usr/local/share/zsh/site-functions /usr/local/share/zsh/4.2.6/functions)
funcstack
functions
galiases
histchars='!^#'
history
historywords
jobdirs
jobstates
jobtexts
keymaps
mailpath=()
manpath=()
module_path=(/usr/local/lib/zsh/4.2.6)
modules
nameddirs
options
parameters
path=(/tmp/opt/spi/RapiDev_99a-RC1/tools/bin /opt/gcc-3.2.3/bin /opt/python-2.4.4/bin /usr/local/bin /bin /usr/bin /home/jkim/bin/exec/i686-Linux2 /home/jkim/bin/shell /home/jkim/bin/shell/LOGIN/i686-Linux2)
pipestatus=(0)
prompt='%m%# '
psvar=()
reswords
signals=(EXIT HUP INT QUIT ILL TRAP ABRT BUS FPE KILL USR1 SEGV USR2 PIPE ALRM TERM STKFLT CHLD CONT STOP TSTP TTIN TTOU URG XCPU XFSZ VTALRM PROF WINCH POLL PWR SYS ZERR DEBUG)
status=0
termcap
terminfo
userdirs
watch=()
widgets
stimpy% setopt
interactive
monitor
norcs
shinstdin
zle
Messages sorted by:
Reverse Date,
Date,
Thread,
Author