[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Not so useless use of cat
From: |
Andreas Schwab |
Subject: |
Re: Not so useless use of cat |
Date: |
Wed, 17 Sep 2014 09:35:56 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) |
address@hidden (Aharon Robbins) writes:
> In article <address@hidden>,
> Chet Ramey <address@hidden> wrote:
>>On 9/16/14, 3:00 PM, Bob Proulx wrote:
>>
>>> That is one of the reasons I don't like the /dev/std{err,in,out}
>>> things. They are not portable. They do different things on different
>>> systems. I avoid them.
>>
>>I've considered emulating it everywhere, regardless of what the OS
>>provides, but I'd get just as many complaints if I did that.
>>
>>Chet
>
> This is what gawk does. I haven't had any complaints about this,
> and once you do it that way you can claim that Bash is being consistent
> across all systems. (That's one of the reasons I did it that way.)
AWK can do that since it has full control over the files it accesses.
Bash doesn't have that, it needs to coexist with programs that open the
files themselves. It cannot emulate "foo -o /dev/stdin" to make it the
same as "foo >/dev/stdin".
Andreas.
--
Andreas Schwab, SUSE Labs, address@hidden
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."
- Re: Not so useless use of cat, (continued)
- Re: Not so useless use of cat, Bob Proulx, 2014/09/12
- Re: Not so useless use of cat, Dennis Williamson, 2014/09/12
- Re: Not so useless use of cat, Bob Proulx, 2014/09/13
- Message not available
- Re: Not so useless use of cat, Ralf Goertz, 2014/09/16
- Re: Not so useless use of cat, Bob Proulx, 2014/09/16
- Re: Not so useless use of cat, Greg Wooledge, 2014/09/16
- Re: Not so useless use of cat, Bob Proulx, 2014/09/16
- Re: Not so useless use of cat, Chet Ramey, 2014/09/16
- Re: Not so useless use of cat, Bob Proulx, 2014/09/17
- Message not available
- Re: Not so useless use of cat, Aharon Robbins, 2014/09/17
- Re: Not so useless use of cat,
Andreas Schwab <=
- Re: Not so useless use of cat, Chet Ramey, 2014/09/17
- Message not available
- Re: Not so useless use of cat, Aharon Robbins, 2014/09/18
- Re: Not so useless use of cat, Chet Ramey, 2014/09/18
- Re: Not so useless use of cat, arnold, 2014/09/18
- Re: Not so useless use of cat, Greg Wooledge, 2014/09/18
- Re: Not so useless use of cat, Chet Ramey, 2014/09/18
- Re: Not so useless use of cat, Dennis Williamson, 2014/09/16
- Message not available
- Re: Not so useless use of cat, Ralf Goertz, 2014/09/17
Re: Not so useless use of cat, Greg Wooledge, 2014/09/15