Nu-core
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Owners
        • Signed-in users
        • Everyone
        Owners Signed-in users Everyone
      • Write
        • Owners
        • Signed-in users
        • Everyone
        Owners Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights
    • Engagement control
    • Transfer ownership
    • Delete this note
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Versions and GitHub Sync Note Insights Sharing URL Help
Menu
Options
Engagement control Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Owners
  • Owners
  • Signed-in users
  • Everyone
Owners Signed-in users Everyone
Write
Owners
  • Owners
  • Signed-in users
  • Everyone
Owners Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       owned this note    owned this note      
    Published Linked with GitHub
    Subscribed
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    Subscribe
    # Nushell core team meeting 2023-08-30 ## Attendees - amtoine - terts - JT - fdncred - storm - reilly - wind - stefan - labestiapty - jakub ## Agenda - [x] uutils/coreutils discussion with terts and dmatos - cp parameters, what is the final list for dmatos to integrate? [voting spreadsheet](https://docs.google.com/spreadsheets/d/1aFXAg2IkHFCz289QYBroSn9XK_80lV3y7KEZxzeHw2c/edit#gid=0) - should uu_cp be featured gated in our next release or should uu_cp just be our default cp from here on out? - joint blog for nushell and coreutils announcing this integration - what is the next command to integrate? (maybe it's too soon to talk about this) (crawl, walk, run list here https://docs.google.com/spreadsheets/d/1MP9V8BTtcy_3DIUT8025yTcGrjkIJ-ZKFT0uvJFw0Lo/edit#gid=0) - flags behind a feature flag? - [x] Preliminary survey thoughts - [ ] Feedback from "The Case for Nushell" - [ ] String interpolation shorthand: https://github.com/nushell/nushell/pull/10147 - [ ] Should we allow omitting `()` for variables in string interpolation? (`spam --foo=$name`, `$"foo $bar"`) - [ ] Syntax highlighting needs improvement (compare `cat $"($nu.config-path)/../env.nu"` vs. `cat ($nu.config-path)/../env.nu`) - [x] Getting [value usage refactor #10121](https://github.com/nushell/nushell/pull/10121) unstuck/moving - [ ] Plugins requesting stuff from Nushell's engine/stack - e.g., how to read env vars from plugins? (`std::env:var` works but only for purely string variables, not for something structured like `$env.foo = {a: 1}`) - Can/should plugins do more (e.g., be modules which define constants/aliases, change environment)? - explore possibly storing state on the plugin side with a key/value embedded database like sled ? - would having an embedded key/value database somewhere in the plugin flow of information help at all ? ## Discussed Topics ## uutils-nushell collab ### cp parameters How many flags/options do we want to carry over. Darren opened a voting spreadsheet: https://docs.google.com/spreadsheets/d/1aFXAg2IkHFCz289QYBroSn9XK_80lV3y7KEZxzeHw2c/edit#gid=0 green items are the first pass, as a starting point, not meaning we won't add any additional options later. JT: some folks want their POSIX - should there be a option/mode to enable full posix flag fest? - ? where the option: JT maybe cargo flag / feature gate Terts: a lot of the flags are around formatting, will probably not necessary - start with the ones that are really necessary David: - a lot of code in the existing coreutils is around handling the flags/options etc. - keeping the basics makes the porting easier Terts: also finding the sweetspot **which commands to actually port** Point David: added complication around spans / how nushell streams -> thus `cp` was really easy to get a feel for it Terts: there are different levels of abstraction for the different uutils - sometimes printing in the flow of the code ### how do we ship it? - feature: `nuuu` uses the `uucp` crate as `cp` Darren: would like to ship with the uu version. David: only test suite failures are down to error output **no feature flags, we ship uu version, have some `cp-old` still laying around for a few versions** (comment storm: `cp-old` for better discoverability over `old-cp`) JT: lean towards the `cp` uutils muscle memory but keep the set of flags tight Release in three weeks ### details on uutils architecture There is a core `uu_core` crate, in `uu_cp` reexport (so no direct dep but transitively) goal to slim down `uu_core` (terts) as this would generally beneficial ### uutils release schedule roughly 6 weeks (manual/non-strict) ### communication strategy uutils doesn't have a central blog, impact on nushell is larger at the moment, will shout out in the release notes ### Next commands to port the crawl-walk-run (easy to hard sorting) [list](https://docs.google.com/spreadsheets/d/1MP9V8BTtcy_3DIUT8025yTcGrjkIJ-ZKFT0uvJFw0Lo/edit#gid=0) Nushell has crossplatform focus, existing commands may behave differently Terts: [Uutils Platform compatibility list](https://uutils.github.io/coreutils/book/platforms.html) Darren: file-io/fs commands are a weak spot in nushell (platform support/permissions) would love to piggyback > Cold-hard truth: the shell is responsible for globbing (in the posix world) JT: also prioritize by popularity (should be useful in a modern world) **Let's look at this list after we got `cp` in** ### next steps David wants to prune down, based on our minimal flag list Great to kick off the collaboration with the uutils team ## Loud feedback Both on social media from JT's blog post and peeking into the survey freeform-text ### Background tasks This is a frequent complaint, not trivial Darren: pueue? seems to be evolving some modularity, worth a look if we can hitch hike WindSoilder has been discussing with them in https://github.com/Nukesor/pueue/issues/363 Also Ctrl-Z and other signals that need to be managed properly ### Buckets of existing bash scripts how to port from existing scripts/snippets can we help here? - compatibility layer to execute - translation mode - volume of flags - the can of POSIX compatibility Reilly: bash scripts that have a shebang are already not a problem if you have `bash` installed Kubouch: environment management is still a pain. (e.g. activation scripts from tools, e.g. things that tack onto `.bashrc`) How can we proactively help folks Darren: there is a volume of legacy that will probably still remain in their ecosystem David: - Documentation - how to launch a bash/zsh script inside the structured shell environment - how to translate `foo >> .bashrc` - Problems with install scripts from the web - shebang behavior ## string interpolation in command argument position etc. ```bash cd ($env.PWD)/crates/nu-command ``` can we get closer to bash. ##### existing alternatives: instead of ```bash cd ($env.PWD | path join "crates/nu-command") ``` or ```bash cd $"($env.PWD)/crates/nu-command" ``` We would still need the parens (delimiting the end of vars) ### Drawbacks - this syntax will not be universal - highlighting etc. is not yet up to date - breaking completions etc. - cellpaths: - will not allow cell-paths in the same way. you need to wrap different things in parens - `nu --testbin cococo (ls | sort-by name | get name).1` will now break - tension: ease of use for pure strings vs the structured data that is common in nushell - tricky context/syntax shape ### Can we go further `git --worktree=$env.PWD/foo/bar` problematic to identify the end of the variable/cellpath with possibilities of file endings and what is all allowed for nu variable names. (introduces an additional alphabet you need to remember, ) footguns we are currently and low on footguns ### Darren is choosing violence "let's land the PR right until the release" WindSoilder: we already can express it, this introduces additional complexity around JT: I'll switch it to draft we can still try it out on our own ## Issues > :bulb: the issues which [needs-core-team-attention](https://github.com/nushell/nushell/labels/needs-core-team-attention) > :bulb: **Note** > to list all the PRs currently [opened in `nushell/nushell`](https://github.com/nushell/nushell/pulls): > ```nu > gh pr list --json url,number,author,title > | from json > | each {|i| > $"- [($i.number)]\(($i.url)\) ($i.title) \(@($i.author.login)\)" > } > | reverse > | to text > ```

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully