Apr 2, 2018 18:25
@jean No it will not fall into the Sun. You need to take into account the gain in velocity when falling towards the Sun (down the gravity well). There comes a point (called perihelion) when the bullet is so fast, it starts rising again. That's what happens for all elliptical orbits.
Apr 2, 2018 18:25
@AndréParamés I'm aware of this, and long range shooting needs to consider Coriolis force. But these are specific situations, not usual situations. In the vast majority of shots fired from guns, you'd aim at the object, no?
Apr 2, 2018 18:25
@BlueRaja-DannyPflughoeft I'm not a native speaker. But to shoot at something usually means pointing at it, doesn't it?
 
May 3, 2017 12:14
I have deleted my harsh comment.
May 3, 2017 12:12
Mate, I need to work... nice having a chat with you :-)
May 3, 2017 12:12
I'm using Cygwin where I can, with zsh.
May 3, 2017 12:11
I wouldn't touch a Windows shell with a ten foot pole :-)
May 3, 2017 12:09
Ok there is one exception, when globbing does not happen: when set -f (no filename expansion) is in effect. But the default for that is off.
May 3, 2017 12:08
It yields empty here.
May 3, 2017 12:07
Thanks, that would be helpful.
May 3, 2017 12:07
Beats me. Maybe it's a markup problem, swallonging the quoting?
May 3, 2017 12:06
Does not matter. All Bourne shells behave the same in this regard.
May 3, 2017 12:05
I apologize for the harsh word.
May 3, 2017 12:04
Well, all I can says is that command|grep * expands the * in any shell and that is almost certainly not what the author intended. Glob expansion is suppressed by quoting.
May 3, 2017 12:02
I'm on the POSIX comitte for Shell Standardization, if that means anything :-)
May 3, 2017 12:01
Yes it does. But commands in pipes can have arguments as well. And the shell expands globs BEFORE it starts any program in the pipeline.
May 3, 2017 11:59
bash on windows does not do globbing? Then it's broken.
May 3, 2017 11:57
I don't judge the quality of code by who wrote it. I judge by whether it does what it should. No, I haven't tried it, because I know how globbing works. But if seeing is believing: what does xrandr|echo * output on your machine?
May 3, 2017 11:49
@JonathanAllan Since when does the shell not glob expand after a pipe sign? That page you linked to with man man|grep * is crap.
May 3, 2017 11:49
@JonathanAllan Work. Like you asked in your first comment.
May 3, 2017 11:49
@JonathanAllan No, it wouldn't. An unescaped * is a glob that the shell expands to all files in the CWD.
 
Mar 21, 2017 18:58
$\pi$ seconds is a nanocentury.
 
Oct 2, 2015 10:03
"C/C++ is not a language." Indeed; it's undefined behaviour. :-)