AST Users,
After upgrading ksh (from version "s"?), at least one of my scripts is
misbehaving. My system:
$ print ${.sh.version}
Version AJM 93t+ 2010-02-02
$ uname -srvpio
Linux 2.6.18-92.1.13.el5 #1 SMP Thu Sep 4 03:51:21 EDT 2008 x86_64 x86_64
GNU/Linux
The following exemplifies the behavior.
This works as expected:
$ sed 's/^/Hello /' <(print "Fred" | sort)
Hello Fred
However, the following fails to capture the output of the above command in the
variable "x", as it should.
$ x="$(sed 's/^/Hello /' <(print "Fred" | sort))"
Fred
$ print "x: $x"
x:
If I leave out the " | sort", then the output is (correctly) captured in the
variable "x".
$ x="$(sed 's/^/Hello /' <(print "Fred"))"
$ print $x
Hello Fred
Is this a bug in ksh?
Thanks,
Dan_______________________________________________
ast-users mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/ast-users