ALT Linux Team development discussions
 help / color / mirror / Atom feed
* [devel] make test: ! /bin/false
@ 2005-09-19 14:05 Alexey Tourbin
  2005-09-19 14:10 ` Eugene Ostapets
  0 siblings, 1 reply; 7+ messages in thread
From: Alexey Tourbin @ 2005-09-19 14:05 UTC (permalink / raw)
  To: devel

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

Скажите, почему так происходит?
make-3.81beta1-alt1

$ cat Makefile
test:
	! /bin/false
$ make test
! /bin/false
make: *** [test] Error 1
$

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

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

* Re: [devel] make test: ! /bin/false
  2005-09-19 14:05 [devel] make test: ! /bin/false Alexey Tourbin
@ 2005-09-19 14:10 ` Eugene Ostapets
  2005-09-19 14:48   ` [devel] " Alexey Tourbin
  0 siblings, 1 reply; 7+ messages in thread
From: Eugene Ostapets @ 2005-09-19 14:10 UTC (permalink / raw)
  To: ALT Devel discussion list

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

Alexey Tourbin пишет:

>Скажите, почему так происходит?
>make-3.81beta1-alt1
>
>$ cat Makefile
>test:
>	! /bin/false
>$ make test
>! /bin/false
>make: *** [test] Error 1
>$
>  
>
$ cat Makefile
eostapets@eugene ~/tmp/6 $ cat Makefile
test1:
    ! /bin/true
test2:
    ! /bin/false

$ make test1
! /bin/true
$ make test2
! /bin/false
make: *** [test2] Ошибка 1

Я думаю ответ понятен?:)
-- 
WBR,
Eugene Ostapets

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

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

* [devel] Re: make test: ! /bin/false
  2005-09-19 14:10 ` Eugene Ostapets
@ 2005-09-19 14:48   ` Alexey Tourbin
  2005-09-19 14:52     ` Eugene Ostapets
                       ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Alexey Tourbin @ 2005-09-19 14:48 UTC (permalink / raw)
  To: ALT Devel discussion list

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

On Mon, Sep 19, 2005 at 05:10:17PM +0300, Eugene Ostapets wrote:
> eostapets@eugene ~/tmp/6 $ cat Makefile
> test1:
>     ! /bin/true
> test2:
>     ! /bin/false
> 
> $ make test1
> ! /bin/true
> $ make test2
> ! /bin/false
> make: *** [test2] Ошибка 1
> 
> Я думаю ответ понятен?:)

$ /bin/sh -c '! /bin/false'; echo $?
1
$ /bin/sh -c '/bin/false'; echo $?
1
$

Надо изучить шелл... :)

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

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

* Re: [devel] Re: make test: ! /bin/false
  2005-09-19 14:48   ` [devel] " Alexey Tourbin
@ 2005-09-19 14:52     ` Eugene Ostapets
  2005-09-19 15:24     ` Dmitry V. Levin
  2005-09-19 15:45     ` Alexey Tourbin
  2 siblings, 0 replies; 7+ messages in thread
From: Eugene Ostapets @ 2005-09-19 14:52 UTC (permalink / raw)
  To: ALT Devel discussion list

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

Alexey Tourbin пишет:

>Надо изучить шелл... :)
>  
>
Да уж, после того количества роботов не помешает... :)

-- 
WBR,
Eugene Ostapets

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

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

* Re: [devel] Re: make test: ! /bin/false
  2005-09-19 14:48   ` [devel] " Alexey Tourbin
  2005-09-19 14:52     ` Eugene Ostapets
@ 2005-09-19 15:24     ` Dmitry V. Levin
  2005-09-19 15:45     ` Alexey Tourbin
  2 siblings, 0 replies; 7+ messages in thread
From: Dmitry V. Levin @ 2005-09-19 15:24 UTC (permalink / raw)
  To: ALT Devel discussion list

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

On Mon, Sep 19, 2005 at 06:48:32PM +0400, Alexey Tourbin wrote:
> Надо изучить шелл... :)

$ sh -c 'false'; echo rc=$?
rc=1
$ sh -c '/bin/false'; echo rc=$?
rc=1
$ sh -c '! false'; echo rc=$?
rc=0
$ sh -c '! /bin/false'; echo rc=$?
rc=1
$ type false
false is a shell builtin


-- 
ldv

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

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

* [devel] Re: make test: ! /bin/false
  2005-09-19 14:48   ` [devel] " Alexey Tourbin
  2005-09-19 14:52     ` Eugene Ostapets
  2005-09-19 15:24     ` Dmitry V. Levin
@ 2005-09-19 15:45     ` Alexey Tourbin
  2005-09-19 15:51       ` Dmitry V. Levin
  2 siblings, 1 reply; 7+ messages in thread
From: Alexey Tourbin @ 2005-09-19 15:45 UTC (permalink / raw)
  To: ALT Devel discussion list

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

On Mon, Sep 19, 2005 at 06:48:32PM +0400, Alexey Tourbin wrote:
> > Я думаю ответ понятен?:)
> 
> $ /bin/sh -c '! /bin/false'; echo $?
> 1
> $ /bin/sh -c '/bin/false'; echo $?
> 1
> $
> 
> Надо изучить шелл... :)

$ /bin/bash -c '! /bin/false'; echo $?
1
$ /bin/ash -c '! /bin/false'; echo $?
0
$ /bin/ksh -c '! /bin/false'; echo $?
0
$

questionable

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

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

* Re: [devel] Re: make test: ! /bin/false
  2005-09-19 15:45     ` Alexey Tourbin
@ 2005-09-19 15:51       ` Dmitry V. Levin
  0 siblings, 0 replies; 7+ messages in thread
From: Dmitry V. Levin @ 2005-09-19 15:51 UTC (permalink / raw)
  To: ALT Devel discussion list

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

On Mon, Sep 19, 2005 at 07:45:50PM +0400, Alexey Tourbin wrote:
> questionable

Portable way:

$ sh -c 'false; exit $?'; echo rc=$?
rc=1
$ sh -c '/bin/false; exit $?'; echo rc=$?
rc=1
$ sh -c '! false; exit $?'; echo rc=$?
rc=0
$ sh -c '! /bin/false; exit $?'; echo rc=$?
rc=0


-- 
ldv

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

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

end of thread, other threads:[~2005-09-19 15:51 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-09-19 14:05 [devel] make test: ! /bin/false Alexey Tourbin
2005-09-19 14:10 ` Eugene Ostapets
2005-09-19 14:48   ` [devel] " Alexey Tourbin
2005-09-19 14:52     ` Eugene Ostapets
2005-09-19 15:24     ` Dmitry V. Levin
2005-09-19 15:45     ` Alexey Tourbin
2005-09-19 15:51       ` Dmitry V. Levin

ALT Linux Team development discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel/0 devel/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 devel devel/ http://lore.altlinux.org/devel \
		devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
	public-inbox-index devel

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


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