[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ast-users
Subject:    Re: [ast-users] Redirects not evaluated in the context of previous redirects for builtins.
From:       David Korn <dgk () research ! att ! com>
Date:       2013-08-15 14:04:16
Message-ID: 201308151404.r7FE4GBC009025 () terra ! research ! att ! com
[Download RAW message or body]

cc: ormaaj@gmail.com
Subject: Re: [ast-users] Redirects not evaluated in the context of previous  redirects for builtins.
--------

> Hi, is this difference in evaluation for builtins correctable? A practical use 
> for this is to inject a quoted-delimiter herdoc into an unquoted one for 
> constructing templates. The syntax is a bit messier if the redirects have to be 
> re-arranged.
> 
>  $ ksh -c 'cat <<<"foo bar baz" 3<&0 <<<"$(</dev/fd/3) bork blah blarg"; whence 
> -v cat'
> bad file unit number [Bad file descriptor]
> cat is a shell builtin version of /bin/cat
> 

I will have a fix for this in the next alpha.

David Korn
dgk@research.att.com
_______________________________________________
ast-users mailing list
ast-users@lists.research.att.com
http://lists.research.att.com/mailman/listinfo/ast-users
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic