On Thu, Aug 17, 2006 at 04:37:17PM +0200, Axel Liljencrantz wrote:
> You can usually use e.g. 'ls *foo{1,2,3,4,5}' or 'ls ?oo{1,2,3,4,5}'
> instead of 'ls foo[12345]', though this obviously relies on either
> there being no files like 'aaafoo3' or 'boo2', respectively. 

ah, i'll have to remember that. thankfully it is easy to verify if the
choice is correct with tab completion working on wildcards. something
that was always a pain in bash. when the wildcards became to complex i
had to replace the command that i wanted to run with ls, to make sure
the right choice was made, and then redo it with the real command.

another score for fish.

> Yes. Multiline editing on the commandline has been on my todo-list for
> a very long time. I do hope to have the time to do this soon, but I
> have been hoping for a long time.

hmm, i didn't think of that as multiline editing, but just multiline input.
multiline editing implies being able to go back and edit previous lines,
just like in an editor window. i do hope the latter is your goal,
because that would really be an outstanding feature. the former though
would be nice as a quick fix.

> The second issue is a bit muddy for me. On one hand, it seems more
> intuitive to fail on the first failed substitution. On the other hand,
> wildcards only fail if all a commands wildcard fail, so that would be
> more consistent.

well, for the (isfile ...) example, there is nothing stopping me to 
apply it to all wildcards, even the easy ones:
> foo (isfile foo{1,2,3} bar*)
even though checking on bar is redundant

whereas 
> foo (isfile foo{1,2,3}) bar*
will fail even if isfile does deliver results

on a related note a command like:
> foo -a foo* -b bar*
should fail even if one of those wildcards does deliver results.
which currently is not the case. the argument here is that, these are
two seperate file lists, and one of them is empty while 
> foo foo* bar* 
is only one filelist which will not be empty unless both arguments are
empty.

the trouble is of course, how to know if -b is not maybe a filename too.
so i realize that the answer here might not be so easy.

greetings, martin.
-- 
cooperative communication with sTeam      -     caudium, pike, roxen and unix
offering: programming, training and administration   -  anywhere in the world
--
pike programmer   travelling and working in europe             open-steam.org
unix system-      bahai.or.at                        iaeste.(tuwien.ac|or).at
administrator     (caudium|gotpike).org                          is.schon.org
Martin Bähr       http://www.iaeste.or.at/~mbaehr/

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Fish-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fish-users

Reply via email to