From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: <200910052204.aa92451@salmon.maths.tcd.ie> References: <20091005192428.GA24445@nipl.net> <200910052204.aa92451@salmon.maths.tcd.ie> Date: Mon, 5 Oct 2009 19:22:03 -0700 Message-ID: <13426df10910051922h6d40c1b2u5a8481db9a2a9b64@mail.gmail.com> From: ron minnich To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [9fans] mishandling empty lists - let's fix it Topicbox-Message-UUID: 8029b054-ead5-11e9-9d60-3106f5b1d025 On Mon, Oct 5, 2009 at 2:04 PM, John Stalker wrote: > `cat' would concatenate 0 files, i.e. ouptut nothing, cat would copy stdin to stdout > `chmod 755' would set the permissions of no files to 755, would read a list of files from stdin and change the modes > `cp foo/' would move no files to the directory foo, would read a list of files from stdin and copy them. > `df' would show free disk space for no filesystems, would read a list of file system names and df them. > `kill' would stop no processes, would read a list of pids in and stop them. > `ln foo/' would hardlink no files into the directory foo, would read a list of filenames in and ln them > `ls' would list no files (you would use `ls .' for the usual case), would read a list of file names in and ls them. > `mkdir' would create no directories, would read a list of file names in and mkdir them (I could really use this one) > `mv foo/' would move no files into the directory foo, would read a list of file names in and mv them > `ps -U' would show no users' processes, would read a list of user names in and ps them > `rm' would remove no files, would read a list of file names in and rm them > and `sh' would execute no scripts in the Bourne shell. would read a set of commands from stdin and ... oh wait it does this. I prefer my version to your versions. I can see uses for them already. ron