zsh-users
 help / color / mirror / code / Atom feed
* exec
@ 2024-06-03 14:10 Ray Andrews
  2024-06-03 14:17 ` exec Mark J. Reed
  0 siblings, 1 reply; 12+ messages in thread
From: Ray Andrews @ 2024-06-03 14:10 UTC (permalink / raw)
  To: Zsh Users

[-- Attachment #1: Type: text/plain, Size: 1052 bytes --]

I've just recently come across 'exec' in a few scripts.  No familiarity 
with it.  Running this:

echo before exec
exec echo exec itself
echo after exec

... I find that whether in a script or a function it zaps the terminal 
and there's no such place as 'after exec'. What are the uses of that?  
For example the script that starts xfce4 'etc/xdg/xfce4/xinitrc' ends 
with this:

      exec xfce4-session

... so 'then what'?  Hard to put the question into words, but I have a 
sort of hanging feeling, I don't know where execution goes.  For that 
matter, neither do the xfce4 people know where it goes.  ( Micro rant: 
you have yer systemd and yer xdg and yer dbus and God knows what else 
all layered on top of each other and nobody knows what's actually 
happening.) The question arises cuz I want to run scripts both just 
before and just after an xfce4 session but nobody knows how that might 
be done.  Not our problem here of course, but if I had some insights 
into 'exec' it might help.  When, where and why do we 'exec' things?

[-- Attachment #2: Type: text/html, Size: 1418 bytes --]

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

end of thread, other threads:[~2024-06-03 16:26 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-06-03 14:10 exec Ray Andrews
2024-06-03 14:17 ` exec Mark J. Reed
2024-06-03 14:42   ` exec Ray Andrews
2024-06-03 14:50     ` exec Eric Cook
2024-06-03 14:54     ` exec Mark J. Reed
2024-06-03 15:16       ` exec Mark J. Reed
2024-06-03 15:29         ` exec Ray Andrews
2024-06-03 15:22       ` exec Ray Andrews
2024-06-03 15:33         ` exec Mark J. Reed
2024-06-03 15:59           ` exec Ray Andrews
2024-06-03 16:06           ` exec Bart Schaefer
2024-06-03 16:23             ` exec Ray Andrews

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