Commit graph

3374 commits

Author SHA1 Message Date
ridiculousfish
e0e0bcdc1e Update code formatting 2013-03-21 17:44:51 -07:00
ridiculousfish
1ed8af2ee8 Some cleanup of builtin_printf. Eliminate global variables and a nasty macro. 2013-03-21 17:40:12 -07:00
ridiculousfish
3830c0adc4 Merge branch 'builtin_printf' of git://github.com/siteshwar/fish-shell into siteshwar-builtin_printf 2013-03-20 16:18:52 -07:00
Siteshwar Vashisht
5dbda6cd95 Fixed some case statements in hextobin function 2013-03-17 00:43:06 +05:30
Siteshwar Vashisht
d8dbdc83c0 Cleaned up some code in printf builtin 2013-03-17 00:28:12 +05:30
Siteshwar Vashisht
359a7cebde Use wcstoimax and wcstoumax instead of strtoimax and strtoumax in printf builtin 2013-03-17 00:20:02 +05:30
Siteshwar Vashisht
490ead52eb Changed octtobin, hextobin and isodigit macros into functions 2013-03-17 00:04:11 +05:30
Siteshwar Vashisht
a5a7a32447 Use fixed value "lld" instead of PRIdMAX 2013-03-16 23:32:26 +05:30
Terje Larsen
7e9652787b Add completion for ruby-build 2013-03-13 23:19:03 +01:00
ridiculousfish
3b00d06a62 Return key should only insert a newline if backslashed character is whitespace, or backslash terminates the line
https://github.com/fish-shell/fish-shell/issues/613
2013-03-12 13:00:37 -07:00
ridiculousfish
234fb7c2fe Rename print_service_names to __fish_service_print_names 2013-03-12 12:00:02 -07:00
aliva
2c7e0ef577 service name completion for "systemd service manager" added 2013-03-12 19:13:52 +03:30
ridiculousfish
2cbcc82968 Add some headers to fix the build on OpenBSD
https://github.com/fish-shell/fish-shell/issues/616
2013-03-11 13:38:18 -07:00
ridiculousfish
b48e504522 Spelling mistake in comment 2013-03-11 10:55:47 -07:00
ridiculousfish
4cce303c89 Add support for making a leading space not save to history
https://github.com/fish-shell/fish-shell/pull/615
2013-03-10 14:25:43 -07:00
Kenneth Vestergaard
6a97b45ad1 Add note to docs. 2013-03-10 14:24:16 -07:00
Kenneth Vestergaard
1afdbb848e Minor fix to order of arguments in error-message. 2013-03-09 13:03:28 -08:00
ridiculousfish
4d19bb17a9 Break out COMPLETE_NO_CASE and COMPLETE_REPLACES_TOKEN into separate flags, in preparation for upcoming fuzzy completion work 2013-03-05 20:54:16 -08:00
ridiculousfish
b2012467b3 Document -e and -E flags for echo, and provide some examples 2013-03-05 17:37:44 -08:00
David Adam (zanchey)
daf5ef1bbd Kill termio.h and sys/termios.h
On FreeBSD, compilation complains that "this file includes
<sys/termios.h> which is deprecated, use <termios.h> instead". On Linux
and FreeBSD, <sys/termios.h> literally just pulls in <termios.h>. On OS
X and Solaris, <termios.h> pulls in <sys/termios.h>.

<termio.h> doesn't exist on FreeBSD or Mac OS X, and on Linux is marked
as deprecated and just includes <termios.h>. It does exist on Solaris,
but no `struct termio` is ever actually used in the codebase.
2013-03-05 12:25:00 -08:00
ridiculousfish
85a5319c4b Add some examples to set_color 2013-03-04 12:05:21 -08:00
Daniel James
6ca11044a4 Remove -v flag from set_color synopsis.
The -v documentation was removed when set_color was made a builtin, but wasn't removed from the synopsis.
2013-03-04 11:33:50 -08:00
Siteshwar Vashisht
42be7733fe Return EXIT_FAILURE in printf builtin if conversion to number fails 2013-03-04 23:25:14 +05:30
ridiculousfish
1d75c232ff Teach builtin_test about the special precedence rules in IEEE 1003.1
https://github.com/fish-shell/fish-shell/issues/601
2013-03-03 13:22:00 -08:00
Siteshwar Vashisht
97c9c9c9d1 Use wmemcpy instead of mempcpy in printf builtin 2013-03-03 16:22:26 +05:30
Siteshwar Vashisht
ab52469fbb Changed type of ok array in builtin_printf.cpp to bool 2013-03-03 15:32:32 +05:30
Siteshwar Vashisht
fba984272a Fixed indentation in builtin_printf.cpp 2013-03-03 15:16:18 +05:30
Siteshwar Vashisht
fb3a41d3ad Merge branch 'builtin_printf' of github.com:siteshwar/fish-shell into builtin_printf
Conflicts:
	Makefile.in
	builtin.cpp
	builtin_printf.cpp
2013-03-03 00:49:56 +05:30
Siteshwar Vashisht
be7d02ebdd Added test cases for printf builtin 2013-03-03 00:45:34 +05:30
Siteshwar Vashisht
b989978dd3 Fixed code to support field width and precision 2013-03-02 20:54:12 +05:30
Siteshwar Vashisht
d9c9760aac Initial version of printf builtin 2013-03-02 20:54:12 +05:30
Siteshwar Vashisht
6ff88a44f0 Fixed code to support field width and precision 2013-03-02 16:02:20 +01:00
ridiculousfish
cbcc439e03 Merge branch 'master' of git://github.com/aliva/fish-shell into aliva-master 2013-03-01 15:10:50 -08:00
David Adam (zanchey)
bf282e9bd7 configure: disable gettext support if msgfmt isn't found (fixes https://github.com/fish-shell/fish-shell/issues/548) 2013-03-01 14:54:46 -08:00
David Adam (zanchey)
4c3d3af73e configure: only check for gettext/dcgettext if we want them (makes --without-gettext work on platforms where gettext exists but isn't wanted) 2013-03-01 14:54:46 -08:00
David Adam (zanchey)
10648cac5b configure: only check for libintl if we want to use gettext (makes --without-gettext actually work) 2013-03-01 14:54:45 -08:00
aliva
3bfcd5e105 recreate yum-cache file every six hours. 2013-03-02 01:48:56 +03:30
aliva
87aca05e7f autocomplete 'yum install' using yum cache 2013-03-01 23:27:03 +03:30
ridiculousfish
94b1d58cc2 Additional changes related to https://github.com/fish-shell/fish-shell/pull/592 2013-02-28 10:25:32 -08:00
ridiculousfish
c55cbd3f2f Hopeful fix for https://github.com/fish-shell/fish-shell/issues/594 2013-02-26 18:31:08 -08:00
ormris debian
d89fcdcc5f Add proper desriptions to "git submodule" 2013-02-26 16:24:28 -08:00
Cheer Xiao
76f715c486 add class scoped_push to automatically restore variable on function exit 2013-02-26 12:17:28 -08:00
lledey
bbab6b2fdc Fix compilation by using std::ptrdiff_t instead of ptrdiff_t
Signed-off-by: lledey <lledey@gmail.com>
2013-02-23 21:47:10 +01:00
ridiculousfish
a8e92639af Cleanup and simplify null_terminated_array_t and its clients 2013-02-22 16:22:56 -08:00
ridiculousfish
d99c2cb9a7 Support /etc/paths and /etc/paths.d/* on OS X
https://github.com/fish-shell/fish-shell/issues/417
2013-02-22 14:01:17 -08:00
ridiculousfish
9f8fe3d5e3 Hopeful fix to avoid forking for certain builtins like echo when they have an input redirection only 2013-02-22 13:20:27 -08:00
Konrad Borowski
3c8c8a7559 Remove useless __fish_complete_perl function 2013-02-21 12:53:35 -08:00
Konrad Borowski
a61e2caadb Update Perl completion 2013-02-21 12:53:35 -08:00
ridiculousfish
f109d535b1 Add a null check to avoid passing null to io_chain_t::push_back
https://github.com/fish-shell/fish-shell/issues/590
2013-02-21 12:44:01 -08:00
ridiculousfish
12095c721c Remove unnecessary eval in __fish_complete_cd
https://github.com/fish-shell/fish-shell/pull/589
2013-02-20 18:43:54 -08:00