Discussion:
[ast-developers] ksh -c 'redirect {n}</etc/profile ; cat <&{n}' --> {n}: bad file unit number - why?
Simon Toedt
2013-08-02 13:27:24 UTC
Permalink
ksh -c 'redirect {n}</etc/profile ; cat <&{n}'
{n}: bad file unit number

Why doesn't this work? <&$n works, but why can't the parser also accept {n}?

Simon
Simon Toedt
2013-08-09 06:23:10 UTC
Permalink
Post by Simon Toedt
ksh -c 'redirect {n}</etc/profile ; cat <&{n}'
{n}: bad file unit number
Why doesn't this work? <&$n works, but why can't the parser also accept {n}?
Hello? Can anyone answer my questions? Please!

Simon
David Korn
2013-08-09 12:32:37 UTC
Permalink
cc: simon.toedt at gmail.com
Subject: Re: Re: [ast-developers] ksh -c 'redirect {n}</etc/profile ; cat <&{n}' --> {n}: bad file unit number - why?
--------
Post by Simon Toedt
Hello? Can anyone answer my questions? Please!
It will work in the next alpha.

David Korn
dgk at research.att.com
Wendy Lin
2013-08-09 16:55:56 UTC
Permalink
Post by David Korn
cc: simon.toedt at gmail.com
Subject: Re: Re: [ast-developers] ksh -c 'redirect {n}</etc/profile ; cat <&{n}' --> {n}: bad file unit number - why?
--------
Post by Simon Toedt
Hello? Can anyone answer my questions? Please!
It will work in the next alpha.
David, could you share the patch for this with this list? I would be
interested to test it too.
Post by David Korn
David Korn
dgk at research.att.com
_______________________________________________
ast-developers mailing list
ast-developers at lists.research.att.com
http://lists.research.att.com/mailman/listinfo/ast-developers
Wendy
Wendy Lin
2013-08-18 14:05:44 UTC
Permalink
Post by Wendy Lin
Post by David Korn
cc: simon.toedt at gmail.com
Subject: Re: Re: [ast-developers] ksh -c 'redirect {n}</etc/profile ; cat <&{n}' --> {n}: bad file unit number - why?
--------
Post by Simon Toedt
Hello? Can anyone answer my questions? Please!
It will work in the next alpha.
David, could you share the patch for this with this list? I would be
interested to test it too.
ksh -c 'set -o nounset; builtin cat; redirect {n}</etc/profile ; cat
<&{n};' does not work with ast-ksh.20130814. The call just hangs.

Wendy
Wendy Lin
2013-08-18 14:46:17 UTC
Permalink
Post by Wendy Lin
Post by Wendy Lin
Post by David Korn
cc: simon.toedt at gmail.com
Subject: Re: Re: [ast-developers] ksh -c 'redirect {n}</etc/profile ; cat <&{n}' --> {n}: bad file unit number - why?
--------
Post by Simon Toedt
Hello? Can anyone answer my questions? Please!
It will work in the next alpha.
David, could you share the patch for this with this list? I would be
interested to test it too.
ksh -c 'set -o nounset; builtin cat; redirect {n}</etc/profile ; cat
<&{n};' does not work with ast-ksh.20130814. The call just hangs.
Wendy
ksh -c 'set -o nounset ; builtin cat ; redirect {n}>./my.txt ; { print
"sample1" >&{n} ; } >/dev/null ; cat my.txt ; true' does not work
either. It should print 'sample1' on stdout.

Wendy

Loading...