[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Equivalent of ksh, zsh {N}<[WORD] ?

From: Dave B
Subject: Re: Equivalent of ksh, zsh {N}<[WORD] ?
Date: Tue, 26 Aug 2008 16:47:48 +0200
User-agent: Thunderbird (X11/20080725)

Pierre Gaston wrote:

>> I think he refers to the fact that, with ksh, you can do for instance
>> $ exec {fd}<&0
>> $ echo $fd
>> 10
>> $ exec {fd1}<&0
>> $ echo $fd1
>> 11
>> I didn't try on zsh, but with bash you get:
>> $ exec {fd}<&0
>> -bash: exec: {fd}: not found
> ah sorry I didn't know this syntax
> on which ksh version does this work?

I tried that on a RHEL 5 system with

$ ksh --version
  version         sh (AT&T Labs Research) 1993-12-28 r

Actually, I just tried zsh, and the version installed on that system (which
looks pretty old) does not support the exec {fd}<&0 either.

$ zsh --version
zsh 4.2.6 (i686-redhat-linux-gnu)


reply via email to

[Prev in Thread] Current Thread [Next in Thread]