Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 102648 - bug in exec
Summary: bug in exec
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High minor (vote)
Assignee: Mamoru KOMACHI (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-15 13:20 UTC by F mayer
Modified: 2005-09-29 02:08 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description F mayer 2005-08-15 13:20:14 UTC
gollum login: name
Password:
Last login: Mon Aug 15 22:13:41 2005 on tty1
name@gollum ~ % exec if
zsh: command not found: if


This is gollum.(none) (Linux i686 2.6.12-nitro5-boosted) 22:14:03

gollum login:

I think thats kinda bug

Reproducible: Always
Steps to Reproduce:
1.excute "exec if"

Actual Results:  
loggin out

Expected Results:  
give me the output: zsh: command not found: if

i've used zsh
emerge info:
Portage 2.0.51.22-r2 (default-linux/x86/2005.1, gcc-3.4.4, glibc-2.3.5-r1,
2.6.12-nitro5-boosted i686)
=================================================================
System uname: 2.6.12-nitro5-boosted i686 Intel(R) Pentium(R) 4 CPU 3.00GHz
Gentoo Base System version 1.6.13
dev-lang/python:     2.3.4-r1, 2.4.1-r1
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env
/usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3.4/env
/usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=pentium4"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig candy distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://mir.zyrianes.net/gentoo/ http://gentoo.mirror.solnet.ch
http://gentoo.zie.pg.gda.pl http://ftp.linux.ee/pub/gentoo/distfiles/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow X aalib acpi alsa apache2 apm arts avi bash-completion berkdb
bitmap-fonts cdr crypt cups curl dvd dvdread eds emboss encode fam flac
foomaticdb gdbm ggi gif gnome gpm gstreamer gtk gtk2 guile imagemagick imlib
ipv6 java jpeg junit ldap libg++ libwww mad mikmod mmx motif mp3 mpeg mysql
ncurses nls ogg oggvorbis opengl oss pam pdflib perl png postgres python qt
quicktime readline samba sdl slang spell sqlite sse sse2 ssl svga tcpd tiff
truetype truetype-fonts type1-fonts unicode vorbis win32codecs xine xml xml2
xmms xv zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
Comment 1 Mamoru KOMACHI (RETIRED) gentoo-dev 2005-09-29 02:08:14 UTC
Sorry for the delay, but why do you think it's a bug? If you exec a command
and the command fails, it is normal for shell process to quit. (because `exec cmd`
replaces the shell with `cmd` and there is no place for `cmd` to return in your case)
See man pages of exec and zshall (it contains a list of reserved words) for detail.
If you have any other question, feel free to ask.