Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env sh
# Originally from the git sources (GIT-VERSION-GEN)
# Presumably (C) Junio C Hamano <[email protected]>
# Reused under GPL v2.0
# Modified for fish by David Adam <[email protected]>
set -e
# Find the fish git directory as two levels up from script directory.
GIT_DIR="$( cd "$( dirname $( dirname "$0" ) )" && pwd )"
#include <memory>
#include <string>
struct CharList {
char c;
std::unique_ptr<CharList> next;
explicit CharList(char c) : c(c) {}
};
CharList make_list(const std::string &s) {
complete(1) fish complete(1)
NNAAMMEE
complete
ccoommpplleettee -- eeddiitt ccoommmmaanndd ssppeecciiffiicc ttaabb--ccoommpplleettiioonnss
SSyynnooppssiiss
ccoommpplleettee ( -c | --command | -p | --path ) COMMAND
{
"configurations": [
{
"name": "Mac",
"includePath": [
"${workspaceFolder}/**",
"/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include",
"/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1"
],
"defines": [],
[
{
"directory": "/Users/peter/build_fish",
"command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DBINDIR=L\\\"/usr/local/bin\\\" -DCMAKE_BINARY_DIR=\\\"/Users/peter/build_fish\\\" -DCMAKE_SOURCE_DIR=\\\"/Users/peter/github/fish-shell\\\" -DDATADIR=L\\\"/usr/local/share\\\" -DDOCDIR=L\\\"/usr/local/share/doc/fish\\\" -DLOCALEDIR=\\\"/usr/local/share/locale\\\" -DPREFIX=L\\\"/usr/local\\\" -DSYSCONFDIR=L\\\"/usr/local/etc\\\" -D_REENTRANT -D_UNICODE=1 -I. -I/usr/local/include -fdiagnostics-color=always -g -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk -fno-exceptions -o CMakeFiles/fish_macapp.dir/osx/osx_fish_launcher.m.o -c /Users/peter/github/fish-shell/osx/osx_fish_launcher.m",
"file": "/Users/peter/github/fish-shell/osx/osx_fish_launcher.m"
},
{
"directory": "/Users/peter/build_fish",
"command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/b
static PyObject *
long_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
{
PyObject *return_value = NULL;
static const char * const _keywords[] = {"", "base", NULL};
static _PyArg_Parser _parser = {NULL, _keywords, "int", 0};
PyObject *argsbuf[2];
PyObject * const *fastargs;
Py_ssize_t nargs = PyTuple_GET_SIZE(args);
Py_ssize_t noptargs = nargs + (kwargs ? PyDict_GET_SIZE(kwargs) : 0) - 0;
static PyObject *
long_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
{
PyObject *return_value = NULL;
static const char * const _keywords[] = {"", "base", NULL};
static _PyArg_Parser _parser = {NULL, _keywords, "int", 0};
PyObject *argsbuf[2];
PyObject * const *fastargs;
Py_ssize_t nargs = PyTuple_GET_SIZE(args);
Py_ssize_t noptargs = nargs + (kwargs ? PyDict_GET_SIZE(kwargs) : 0) - 0;
#!/bin/sh
#
# apropos -- search the whatis database for keywords.
# whatis -- idem, but match only commands (as whole words).
#
# Copyright (c) 1990, 1991, John W. Eaton.
# Copyright (c) 1994-1999, Andries E. Brouwer.
#
# You may distribute under the terms of the GNU General Public
# License as specified in the README file that comes with the man
---- pcre_tests::tests::test_pcre stdout ----
thread 'pcre_tests::tests::test_pcre' panicked at 'Failed to match', src/pcre_tests.rs:24:25
stack backtrace:
0: backtrace::backtrace::libunwind::trace
at /Users/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.40/src/backtrace/libunwind.rs:88
1: backtrace::backtrace::trace_unsynchronized
at /Users/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.40/src/backtrace/mod.rs:66
2: std::sys_common::backtrace::_print_fmt
at src/libstd/sys_common/backtrace.rs:77
3: <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt
* thread #1, queue = 'com.apple.main-thread', stop reason = signal SIGABRT
* frame #0: 0x00007fff6a42a7fa libsystem_kernel.dylib`__pthread_kill + 10
frame #1: 0x00007fff6a4e7bc1 libsystem_pthread.dylib`pthread_kill + 432
frame #2: 0x00007fff6a3b1a1c libsystem_c.dylib`abort + 120
frame #3: 0x00007fff6744fbe8 libc++abi.dylib`abort_message + 231
frame #4: 0x00007fff6744fd84 libc++abi.dylib`demangling_terminate_handler() + 238
frame #5: 0x00007fff68f77792 libobjc.A.dylib`_objc_terminate() + 104
frame #6: 0x00007fff6745cdc7 libc++abi.dylib`std::__terminate(void (*)()) + 8
frame #7: 0x00007fff6745cb6c libc++abi.dylib`__cxxabiv1::failed_throw(__cxxabiv1::__cxa_exception*) + 27
frame #8: 0x00007fff6744e45d libc++abi.dylib`__cxa_throw + 113