|
|
|
|
|
by Animats
4257 days ago
|
|
1978 called. It wants its pipes back. That approach dates from the days when you got multi-column directory listings with ls | mc
Putting multi-column output code in "ls" wasn't consistent with the UNIX philosophy.There's a property of UNIX program interconnection that almost nobody thinks about. You can feed named environment variables into a program, but you can't get them back out when the program exits. This is a lack. "exit()" should have taken an optional list of name/value pairs as an argument, and the calling program (probably a shell) should have been able to use them. With that, calling programs would be more like calling subroutines. PowerShell does something like that. |
|
http://www.catb.org/~esr/writings/taoup/html/ch06s06.html
Or write environment variables to stdout in Bourne shell syntax so the caller call run "eval" on it. Like ssh-agent, for example.