Re: [dev] List of tools for a CLI environment

2011-10-27 Thread Jimmy Tang
On 26 Oct 2011, at 17:12, Kurt H Maier wrote: On Wed, Oct 26, 2011 at 11:34 AM, Jimmy Tang jt...@tchpc.tcd.ie wrote: just showed this to a friend of mine and he cooked this up ls ${PATH//:/ } shit only works in bash oddly it worked in mksh which is the main shell that i tend to use.

Re: [dev] List of tools for a CLI environment

2011-10-27 Thread Bjartur Thorlacius
On 10/27/11, Jimmy Tang jt...@tchpc.tcd.ie wrote: On 26 Oct 2011, at 17:12, Kurt H Maier wrote: On Wed, Oct 26, 2011 at 11:34 AM, Jimmy Tang jt...@tchpc.tcd.ie wrote: just showed this to a friend of mine and he cooked this up ls ${PATH//:/ } shit only works in bash oddly it worked in

Re: [dev] List of tools for a CLI environment

2011-10-27 Thread markus schnalke
[2011-10-27 09:05] Bjartur Thorlacius svartma...@gmail.com Directory names are a sequence of arbitrary nonzero bytes. Parsing a concatenation of arbitrary strings sucks. Directories can only be separated by zero bytes. That's actually a bug in Unix, discovered too late. meillo

Re: [dev] List of tools for a CLI environment

2011-10-27 Thread Bjartur Thorlacius
On Thu, 27 Oct 2011 10:36:20 -, markus schnalke mei...@marmaro.de wrote: That's actually a bug in Unix, discovered too late. Yeah, and SQL injection attacks are PEBKAC problems. Tokenization by insertion of whitespace into arbitrary strings is plain harmful. The bug in Unix is caused by

Re: [dev] List of tools for a CLI environment

2011-10-26 Thread Troels Henriksen
Jimmy Tang jt...@tchpc.tcd.ie writes: On 25 Oct 2011, at 16:48, Džen wrote: On 25/10/2011 03:56, Evan Gates wrote: Really wish I had an undo send feature... (IFS=:; ls $PATH) couldn't do better. just showed this to a friend of mine and he cooked this up ls ${PATH//:/ } That will

Re: [dev] List of tools for a CLI environment

2011-10-26 Thread Kurt H Maier
On Wed, Oct 26, 2011 at 11:34 AM, Jimmy Tang jt...@tchpc.tcd.ie wrote: just showed this to a friend of mine and he cooked this up ls ${PATH//:/ } shit only works in bash -- # Kurt H Maier

Re: [dev] List of tools for a CLI environment

2011-10-26 Thread Džen
On 26/10/2011 18:12, Kurt H Maier wrote: shit only works in bash +99 Death to bashisms. -- Džen

Re: [dev] List of tools for a CLI environment

2011-10-25 Thread Bastien Dejean
mikshaw a écrit : What about ls /usr/{,local}/bin ls /usr{,/local}/bin

Re: [dev] List of tools for a CLI environment

2011-10-25 Thread Bjartur Thorlacius
On 10/25/11, Bastien Dejean nihilh...@gmail.com wrote: ls /usr{,/local}/bin Or ls /usr/*/bin. Listing directories surely must be preferred over listing just directories in /usr.

Re: [dev] List of tools for a CLI environment

2011-10-25 Thread mikshaw
- Original Message - From: Kurt H Maier can be extended: ls /{,usr/{,local/}}{,s}bin I was trying to work that one out yesterday, but nested brackets often make my head spin. Thanks.

Re: [dev] List of tools for a CLI environment

2011-10-25 Thread mikshaw
- Original Message - From: Bastien Dejean mikshaw a écrit : What about ls /usr/{,local}/bin ls /usr{,/local}/bin Thanks for the correction

Re: [dev] List of tools for a CLI environment

2011-10-25 Thread Džen
On 25/10/2011 03:56, Evan Gates wrote: Really wish I had an undo send feature... (IFS=:; ls $PATH) couldn't do better. -- Džen

Re: [dev] List of tools for a CLI environment

2011-10-24 Thread Anselm R Garbe
On 24 October 2011 00:05, Bjartur Thorlacius svartma...@gmail.com wrote: By the way, how's sta.li progressing? Still paused. Cheers, Anselm

Re: [dev] List of tools for a CLI environment

2011-10-24 Thread Džen
On 23/10/2011 23:43, Kurt H Maier wrote: [...] ls /usr/bin/ ls /usr/local/bin Your one-liner sucks. Talking about CLI tools, most of all we should be precise at how to use them correctly; otherwise how would we be able to decide whether they are useful or not? How about ls /usr/bin

Re: [dev] List of tools for a CLI environment

2011-10-24 Thread Kurt H Maier
On Mon, Oct 24, 2011 at 4:43 PM, Džen yvl...@gmail.com wrote:        ls /usr/bin /usr/local/bin why bother listing /usr/local/bin if /usr/bin isn't around? (actually I started with a much more complicated (and complete) version and edited it down to that. no optimization passes were

Re: [dev] List of tools for a CLI environment

2011-10-24 Thread mikshaw
- Original Message - From: Džen yvl...@gmail.com On 23/10/2011 23:43, Kurt H Maier wrote: [...] ls /usr/bin/   ls /usr/local/bin Your one-liner sucks. Talking about CLI tools, most of all we should be precise at how to use them correctly; otherwise how would we be able to

Re: [dev] List of tools for a CLI environment

2011-10-24 Thread Džen
;) On 24/10/2011 22:59, Kurt H Maier wrote: why bother listing /usr/local/bin if /usr/bin isn't around? Why not? (actually I started with a much more complicated (and complete) version and edited it down to that. no optimization passes were performed.) Something like ls `IFS=:;

Re: [dev] List of tools for a CLI environment

2011-10-24 Thread Džen
On 24/10/2011 23:13, mikshaw wrote: What about ls /usr/{,local}/bin OK, regarding information density in a one-liner you win. -- Džen

Re: [dev] List of tools for a CLI environment

2011-10-24 Thread Kurt H Maier
On Mon, Oct 24, 2011 at 5:22 PM, Džen OK, regarding information density in a one-liner you win. can be extended: ls /{,usr/{,local/}}{,s}bin (at least it works in ksh) well, I'm glad we at least got something useful out of this thread. -- # Kurt H Maier

Re: [dev] List of tools for a CLI environment

2011-10-24 Thread Evan Gates
Something like        ls `IFS=:; echo $PATH` no no, just IFS=:; ls $PATH -Evan

Re: [dev] List of tools for a CLI environment

2011-10-24 Thread Evan Gates
Something like        ls `IFS=:; echo $PATH` no no, just IFS=:; ls $PATH -Evan Really wish I had an undo send feature... (IFS=:; ls $PATH) -Evan

Re: [dev] List of tools for a CLI environment

2011-10-23 Thread Kurt H Maier
On Sun, Oct 23, 2011 at 11:04 AM, Ricardo Catalinas Jiménez jimenezr...@gmail.com wrote: I found this nice list of tools for the CLI: this appears to be a list of tools for *replicating a gui environment* mostly in curses. a real list of tools for the cli can be had by running the following

Re: [dev] List of tools for a CLI environment

2011-10-23 Thread hiro
Actually this guy does not only list CLI tools, neither is everything he has on there top-notch software. Yes, it's faster to write your own tools rather than reading that list, but ls /usr/local/bin is not anything I would want on any mainstream lunixes either.