Fabian Homborg
9367d4ff71
Reindent functions to remove useless quotes
...
This does not include checks/function.fish because that currently
includes a "; end" in a message that indent would remove, breaking the test.
2020-03-09 19:46:43 +01:00
ridiculousfish
a5fd0b317e
Revert "Switch to bare vars in our math
invocations"
...
This reverts commit bd18736ee5
.
Bare variables should only be used in commands that must
manipulate the variable stack, such as `set`.
2017-09-09 23:35:47 -07:00
Kurtis Rader
bd18736ee5
Switch to bare vars in our math
invocations
...
Using bare vars is more efficient because it makes the builtin `math`
expression cache more useful. That's because if you prefix each var with
a dollar-sign then the fish parser expands it before `math` is run.
Something like `math x + 1` can be cached since the expression is the
same each time it is run. But if you do `math $x + 1` and x==1 then you're
effectively executing `math 1 + 1`. And if x==2 the next time then you're
running `math 2 + 1`. Which makes the expression cache much less effective.
2017-08-24 12:38:10 -07:00
Kurtis Rader
8b79f4e5c9
use the new set -a
and set -p
in our scripts
2017-08-04 18:02:24 -07:00
Kurtis Rader
3a782003ed
have argparse report the proper command name
2017-07-12 22:38:32 -07:00
Kurtis Rader
3c4e3035fd
switch from getopt
to argparse
...
Convert our two functions that use `getopt` to use our new `argparse`
builtin.
Fixes #4190
2017-07-12 22:38:32 -07:00
Kurtis Rader
62244f01c2
fix umask
handling of symbolic modes
...
This fixes the handling of symbolic umask values. It also removes two
invocations of `perl` and all but two `math` commands.
Fixes #738
2017-03-28 16:28:24 -07:00
Kurtis Rader
11a60c8374
reformat all fish scripts
...
I hate doing this but I am tired of touching a fish script as part of
some change and having `make style` radically change it. Which makes
editing fish scripts more painful than it needs to be. It is time to do
a wholesale reformatting of these scripts to conform to the documented
style as implemented by the `fish_indent` program.
2016-11-27 21:27:22 -08:00
Fabian Homborg
b85a8bbbfe
Rename sgrep to __fish_sgrep
...
Makes it harder to cause issues with aliases, see fish-shell#2245
2015-09-09 20:55:04 +02:00
David Xia
6d18bf5cd4
Fix umask function regex
...
Some grep implementations complain of empty subexpression
fixes #1313
2014-07-29 01:43:18 -04:00
ridiculousfish
2b35b3f06e
Fix umask in Linux https://gist.github.com/4627181
2013-01-26 12:49:37 -08:00
ridiculousfish
acbb6fb8e2
Make umask work on OS X
...
https://github.com/fish-shell/fish-shell/issues/515
2013-01-12 15:35:40 -08:00
Christopher Nilsson
1b0ce33669
Merged changes from codemonkey and grissiom branches
...
Conflicts:
kill.c
seq.in
2010-11-12 02:07:14 +11:00
David Frascone
ce08bb2ad2
The grep on the commands would sometimes output errors, causing noise and
...
breaking scripts.
2010-11-05 09:26:26 -06:00
Grissiom
70322077d2
remove trialing spaces #2
2010-09-18 10:18:26 +08:00
axel
7492b6cdb3
Make all descriptions for function calls use the implicit translation from the previous patch instead of explicitly using N_
...
darcs-hash:20070116012918-ac50b-c1c0df64333ad910ca81dbc86ad193ece6680722.gz
2007-01-16 11:29:18 +10:00
axel
fd11f294bc
Use the math function instead of calling bc directly in various places
...
darcs-hash:20061212171118-ac50b-a40709edf008f3d725e3755d5282ae5a84818c88.gz
2006-12-13 03:11:18 +10:00
axel
f64364cced
Replace all internal uses of grep with sgrep, which is a wrapper around grep that strips away any GREP_OPTIONS. This is needed to avoid users who have added arbitrary switches to GREP_OPTIONS, thus changing its behaviour.
...
darcs-hash:20061129140004-ac50b-485ff6bfd71e9459ba62461f6e093ca5c9ddd664.gz
2006-11-30 00:00:04 +10:00
axel
1b71f91a01
Update documentation display code to run roff on the client system instead of pregenerating documentation and compiling it into program binaries
...
darcs-hash:20061117162438-ac50b-5c4c7f0bd8bf53a16e16ecfead9569e642b7160f.gz
2006-11-18 02:24:38 +10:00
axel
c2f6c6c1d2
Do gettext translation of descriptions just-in-time internally in fish
...
darcs-hash:20060301165347-ac50b-3df9feec60dd9860e0988396d10b550a501f6802.gz
2006-03-02 02:53:47 +10:00
axel
343cafef34
Redo installation file structure, move lots of things to $PREFIX/share/fish
...
darcs-hash:20060217101339-ac50b-d93d2c620a4b7f75f05ff461a6edbee001da7613.gz
2006-02-17 20:13:39 +10:00