nushell/crates
Jelle Besseling a7c1b363eb
Don't run .sh files with /bin/sh (#8951)
# Description

The previous behaviour broke for me because I didn't have `sh` in my
path for my nu script. I think we shouldn't assume that just because a
file ends with `.sh` it should be executed with `sh`. `sh` might not be
available or the script might contain a hashbang for a different shell.

The idea with this PR is that nushell shouldn't assume anything about
executable files and just execute them. Later on we can think about how
non-executable files should be executed if we detect they are a script.

# User-Facing Changes

This may break some people's scripts or habits if they have wrong
assumptions about `.sh` files. We can tell them to add a hashbang and +x
bit to execute shell scripts, or prepend `bash`. If this a common
assumption something like this should be added to the book

# Tests + Formatting

I only tested manually and that did work

# After Submitting

Co-authored-by: Jelle Besseling <jelle@bigbridge.nl>
2023-05-02 17:56:35 -05:00
..
nu_plugin_custom_values Bump to 0.79.1 dev version (#8998) 2023-04-26 01:05:23 +02:00
nu_plugin_example Bump to 0.79.1 dev version (#8998) 2023-04-26 01:05:23 +02:00
nu_plugin_formats Bump to 0.79.1 dev version (#8998) 2023-04-26 01:05:23 +02:00
nu_plugin_gstat Bump to 0.79.1 dev version (#8998) 2023-04-26 01:05:23 +02:00
nu_plugin_inc Bump to 0.79.1 dev version (#8998) 2023-04-26 01:05:23 +02:00
nu_plugin_python update nu_plugin_python due to signature changes (#8107) 2023-02-18 13:27:24 +00:00
nu_plugin_query Bump to 0.79.1 dev version (#8998) 2023-04-26 01:05:23 +02:00
nu-cli enable history isolation (#9063) 2023-05-01 08:11:38 -05:00
nu-cmd-lang Add extern def which allows raw arguments (#8956) 2023-04-28 09:06:43 +02:00
nu-color-config Bump tabled dependency to 0.11 (#8922) 2023-04-26 13:56:10 -05:00
nu-command Don't run .sh files with /bin/sh (#8951) 2023-05-02 17:56:35 -05:00
nu-engine Bump tabled dependency to 0.11 (#8922) 2023-04-26 13:56:10 -05:00
nu-explore Bump tabled dependency to 0.11 (#8922) 2023-04-26 13:56:10 -05:00
nu-glob Bump to 0.79.1 dev version (#8998) 2023-04-26 01:05:23 +02:00
nu-json Bump to 0.79.1 dev version (#8998) 2023-04-26 01:05:23 +02:00
nu-parser Suggest existing variables on not found (#8902) 2023-05-02 18:17:14 +03:00
nu-path Bump to 0.79.1 dev version (#8998) 2023-04-26 01:05:23 +02:00
nu-plugin Bump to 0.79.1 dev version (#8998) 2023-04-26 01:05:23 +02:00
nu-pretty-hex Bump to 0.79.1 dev version (#8998) 2023-04-26 01:05:23 +02:00
nu-protocol Suggest existing variables on not found (#8902) 2023-05-02 18:17:14 +03:00
nu-std pass std bench into table -e in the example (#9075) 2023-05-01 08:18:51 -05:00
nu-system Bump to 0.79.1 dev version (#8998) 2023-04-26 01:05:23 +02:00
nu-table Fix #9038 (#9042) 2023-04-28 12:50:42 -05:00
nu-term-grid Bump to 0.79.1 dev version (#8998) 2023-04-26 01:05:23 +02:00
nu-test-support Bump to 0.79.1 dev version (#8998) 2023-04-26 01:05:23 +02:00
nu-utils enable history isolation (#9063) 2023-05-01 08:11:38 -05:00
README.md Remove old nushell/merge engine-q 2022-02-07 14:54:06 -05:00

Nushell core libraries and plugins

These sub-crates form both the foundation for Nu and a set of plugins which extend Nu with additional functionality.

Foundational libraries are split into two kinds of crates:

  • Core crates - those crates that work together to build the Nushell language engine
  • Support crates - a set of crates that support the engine with additional features like JSON support, ANSI support, and more.

Plugins are likewise also split into two types:

  • Core plugins - plugins that provide part of the default experience of Nu, including access to the system properties, processes, and web-connectivity features.
  • Extra plugins - these plugins run a wide range of different capabilities like working with different file types, charting, viewing binary data, and more.