Re[2]: [so] scripturi bash; READ nu merge
Nicolae Brinza
so@atlantis.cs.pub.ro
Mon, 16 Feb 2004 17:31:45 +0200
Am si eu o masina din astea ciudate.=20
[root@testiv root]# bash --version
GNU bash, version 2.05b.0(1)-release (i386-redhat-linux-gnu)
Copyright (C) 2002 Free Software Foundation, Inc.
Comanda de mai jos insa merge. Verifica pentru orice eventualitate si valoa=
rea lui $IFS. (IFS=3D`printf ' \t\n'`)
V=3D/proc/cpuinfo; cat $V | { read t1 t2 t3; echo $t1 $t2 $t3 ; }
-----Original Message-----
From: Ion Petrescu <pion@rdsnet.ro>
To: Maria Mateescu <so@atlantis.cs.pub.ro>
Date: Mon, 16 Feb 2004 16:50:37 +0200=20
Subject: Re[2]: [so] scripturi bash; READ nu merge
Hello Maria,
Monday, February 16, 2004, 11:26:19 PM, you wrote:
MM> [atta@marial atta]$ V=3D/proc/cpuinfo; cat $V | read t1 t2 t3; echo $t1=
$t2 $t3
MM> processor : 0
MM> Mie imi merge :).
Mie nu imi merge :(
[io@localhost bash]$ V=3D/proc/cpuinfo; cat $V | read t1 t2 t3; echo $t1 $t=
2 $t3
[io@localhost bash]$
O alta supriza gen Segmentation Fault la AIO oferita de Red Hat 9(Shrike).
Ion
_______________________________________________
so mailing list
so@atlantis.cs.pub.ro
http://atlantis.cs.pub.ro/cgi-bin/mailman/listinfo/so