ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Maxim Mitrofanov <mdk@anker.ru>
To: mandrake-russian@altlinux.ru
Subject: Re: [mdk-re] nohup 	для последовательности   команд
Date: Tue Apr  2 06:51:01 2002
Message-ID: <20020402025318.8D4161A8FE@mail.anker.ru> (raw)
In-Reply-To: <20020401172349.7214620B09@VL3143.spb.edu>

Vitaly Lipatov wrote:
> On 1 April 2002 12:09, cornet wrote:
> > >  Олег спасибо. Кстати контсрукция exec $(commnad; commnad) & тоже
> > > работает
>
> И как это работает? На мой взгляд $(command) запускает команду,
> а результатом этого выражения является вывод команды.
> Так что если я напишу exec $(ls) у меня запустится файл, который
> стоит первым в выводе команды ls.
>

  Озадачили...


  Пришлось провести небольшой эксперемент с двумя скриптами, вобщем
exec $(ls script.sh) & - не работает, покрайней мере я не заметил 
следов работы script.sh. Потом "естественно" ;) почитал man bash и там 
вычитал:

 Compound Commands
       A compound command is one of the following:

    (list) list is executed in a subshell.   Variable  assign-
           ments  and builtin commands that affect the shell's
           environment do not remain in effect after the  com-
           mand completes.  The return status is the exit sta-
           tus of list.

Из чего следует что $() & - тоже должна работать

Виталий если есть какие-либо соображения - рад буду их услыщать для 
полноты и ясности картины.


-- 
  rgrds
  Maxim						mdk@anker.ru



  reply	other threads:[~2002-04-02  6:51 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-04-01 11:10 Maxim Mitrofanov
2002-04-01 11:18 ` cornet
2002-04-01 11:58   ` Maxim Mitrofanov
2002-04-01 12:07     ` cornet
2002-04-01 21:39       ` Vitaly Lipatov
2002-04-02  6:51         ` Maxim Mitrofanov [this message]
2002-04-02 11:02           ` [mdk-re] " Michael Shigorin
2002-04-02 13:12             ` Maxim Mitrofanov
2002-04-02 14:26               ` [mdk-re] [JT] " Michael Shigorin
2002-04-02 14:53                 ` Maxim Mitrofanov
2002-04-02 20:01           ` [mdk-re] " Vitaly Lipatov
2002-04-02 11:45         ` cornet

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20020402025318.8D4161A8FE@mail.anker.ru \
    --to=mdk@anker.ru \
    --cc=mandrake-russian@altlinux.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git