Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
faho
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
23 ms
·
181.
▲
by
faho
8y ago
bash 4 introduced associative arrays (aka dictionaries or hashmaps). Which, while you can do without, is a nice feature that makes some things easier.
182.
▲
by
faho
8y ago
Python has the additional problem of being highly dynamic, though! In C++'s case, the transformation tool has much more information, so more things are possible to do. E.g. let's take the ".erase" case from the article.
183.
▲
by
faho
8y ago
cmder and conemu are terminals. They run shells, like bash or zsh, but also fish. I've not used it myself, but I know that fish is available in WSL and cygwin (though this release had some issues there).
184.
▲
by
faho
8y ago
It is! But calling it "getting closer to production readiness" feels a tad insulting. It's probably just a bit of snark, so it's not worth getting up in arms about, but it's not really friendly phrasing.
185.
▲
by
faho
8y ago
`fish --version` starts a new fish that prints _its_ version. You were still running the old version, and `echo $version` would have told you.
186.
▲
by
faho
8y ago
>Then URLs will have nothing to escape. Unfortunately, `&` is used in URLs, and is special also in the middle of a token.
187.
▲
by
faho
8y ago
There are a few misfeatures in `test`, though. For instance, one way to use it is test somestring to test if "somestring" is empty. POSIX mandates that test with exactly one argument succeeds iff that argument is a non-emp
188.
▲
by
faho
8y ago
>The truly unpredictable UX is when a noob tries to paste Yes, and you've not solved that. You've only solved that one special edge-case where they're pasting "a youtube url". This only pushes the confusing bit f
189.
▲
by
faho
8y ago
>Some is better than none, that's the lesson learned from OMZ's implementation of this feature. I disagree. I'd rather have predictability here. >when I paste a URL containing wildcards into single quotes in fish, I don
190.
▲
by
faho
8y ago
> How often do users of the fish shell paste a string that starts with 'http' and contains a '?' that is meant to be a wildcard? Okay. Now you can do it for http. What about ftp? Or "file://"? Do w
191.
▲
by
faho
8y ago
What? That's been in for a few releases! To trigger it, enter a single-quote, then paste the URL, then close the quote once you're done. We don't attempt to detect URLs because that can go wrong, and because we don't kno
192.
▲
by
faho
8y ago
Fish uses (and still supports) `command1; and command2` instead of `command1 && command2` (and similarly for `||`/`or` and `!`/`not`). The syntax is different, the semantics are the same.
193.
▲
by
faho
8y ago
Not really from a usage perspective though, and resources often don't matter. If you're doing something like this in the background, then that usually means it takes a "long" time (or you'd just wait for it). So the
194.
▲
by
faho
8y ago
It's a python script, using python's http.server. If you're not executing `fish_config` explicitly, nothing is running.
195.
▲
by
faho
8y ago
That's included, just the `~2` shortcut thing isn't.
196.
▲
by
faho
8y ago
Fish does not include tons of syntactic shortcuts. We try to keep the syntax fairly free of opaque symbols. You can use `prevd` and `nextd`, or you can use key bindings, like the default alt-left and alt-right bindings.
197.
▲
by
faho
8y ago
What this does is two things: - It keeps the state separate from the main shell, including $PWD (so the `cd` doesn't affect the main execution "thread") - It executes some script in the background Fish's backgrounding is
198.
▲
Fish shell 3.0
(github.com)
506 points
by
faho
8y ago
|
220 comments
199.
▲
by
faho
8y ago
It would be nice if the list explained that, though! And with the ~20 zsh "frameworks" and "plugin managers" here, they could really do some comparison, or probably even remove a couple. I'd rather they showed me 3
200.
▲
by
faho
8y ago
It's not. Not to that degree. Unix frequently espouses "do one thing", but how much "one thing" is is always open to interpretation. And it's never been quite as small as e.g. left-pad. It's more something
201.
▲
by
faho
8y ago
Technically, they usually aren't "statically" linked as such. They usually use dynamic linking, but then ship those dynamically linked libraries in the package. This has the advantage that the user can still replace the libra
202.
▲
by
faho
8y ago
Okay, now do emacs! Depending on build-time options, that can open text files, images, pdfs, archives (zip et al). In fact I'm struggling to think of a single file type that truly won't have a use in emacs. (It might actually make
203.
▲
by
faho
8y ago
> But most of the content in the original article is still valid. Well.. I mean sure, you can program the things this article says that way. But my point is that once you move even slightly beyond basic color, like the alternative buffer
204.
▲
by
faho
8y ago
Sorry, unfortunately hardcoding escape sequences still won't work. The smcup this uses is the one for st and kitty, and it's not valid for xterm, iterm, konsole, vte (e.g. gnome-terminal),.... That means it's not just "o
205.
▲
by
faho
8y ago
>I wrote a small blog post about it here [0] I work on fish, and one of the things that the upcoming fish 3.0 contains is a new `math` builtin (previously we shipped a function of that name that just wrapped `bc`). So your math expressio
206.
▲
by
faho
8y ago
What I'd love to know is how much of that is codified law (as in in the actual act) as opposed to just expected to come from reasonable courts.
207.
▲
by
faho
8y ago
https://en.wikipedia.org/wiki/W%5EX : >W^X ("Write XOR Execute"; spoken as W xor X) is a security feature in operating systems and virtual machines. It is a memory protection policy whereby every page in a
208.
▲
by
faho
8y ago
>Wix used GPL source code from Wordpress and WP's CEO implied that it was illegal and demanded that Wix release it publicly. But they _did_ share it with others! They distributed the application, which used GPLd code, so they need t
209.
▲
by
faho
8y ago
And the explanation for that word? It's still nothing to do with X, and it's not certain that it would plug the "hole" that is being used here. This "exploit" requires unfettered (or at least not completely thr
210.
▲
by
faho
8y ago
> Unlike flahub where either original develop or flathub admins take control Is this actual policy? How do they determine who is the original developer?
More ›