On 8/27/06, Martin Bähr <[EMAIL PROTECTED]> wrote: > On Sat, Aug 26, 2006 at 11:47:41PM +0200, Axel Liljencrantz wrote: > > So on the first collision, 'mv' will start reading the contents of > > 'foo' looking for a yes/no answer to the overwrite query. Most likely > > this will consume all of the file foo, so the result will be that the > > script quits on the first collision. > > mv should interpret anything that is not y as no and go on, which can > of course lead to evenmore interresting effects since now the next $i > will have a character missing.
Oh, right. Though mv reads input until a newline is encounterd, so actually an entire line is consumed. But still, this will cause asomewhat unexpected behaviour... > > > These versions of the script work. The former uses stderr as the new > > stdin for mv > > hmm, interresting approach. > especially as i never thought of stderr for the input side... It's a bit weird, but since they're all connected to the terminal, it makes sense when you think a bit about it. > > > Thank you for the bug report. Keep them coming! > > don't you worry, i got a few more in the pipeline, > i am just starting with the obvious ones first... :-D > > how about this one? > > when starting, fish greets me with the following message: > fish: Warning: The directory $HOME/bin has been removed from your PATH > because it does not exist > > huh? > ~> cd $HOME/bin > ~/bin> > > it seems that fish is taking $HOME/bin literally and does not like to > expand the variable. i can't blame it, i don't like that either, Seriously? That's allowed? Doesn't work in bash on my system: bash> PATH=$PATH:\$HOME/snafu bash> echo $PATH /usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:$HOME/snafu bash> mkdir snafu; touch snafu/crazy; chmod 755 snafu/crazy bash> crazy bash: crazy: command not found bash> snafu/crazy Does it really work in bash on your system, or does bash simply ignore it? > however since this is coming from a systemwide setting, (and in this > case from the ubuntu default) short of lobbying all distributions to not > put variables into the PATH, i think fish needs tocheck for variables here. This seems like an insane and idiotic thing to allow, but if other shells do it, I guess it _might_ be a good idea to support it. But on my system it doesn't seem they do. Maybe fish is confusing some init file or something? > > 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/ > -- Axel ------------------------------------------------------------------------- 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
