Home Explore Blog CI



nushell

5th chunk of `blog/2021-06-01-nushell_0_32.md`
9276687ced03b6935b42658d5872f3704648bd6a0b5b664d00000001000006fa
## Flags can now use equals (andrasio)

You can now use `=` between a flag and its value.

For example, in addition to:

```shell
> seq --separator ':' 1 10
1:2:3:4:5:6:7:8:9:10
```

You can also write:

```shell
> seq --separator=':' 1 10
1:2:3:4:5:6:7:8:9:10
```

## Other improvements

### Simple string concatenation (sophiajt)

You can now create a new string by concatenating two strings `"hello " + "world"`.

### Path relative-to (kubouch)

Implements path relative-to subcommand. It converts the input path as a relative to the argument path, like this:

```shell
> 'eggs/bacon/sausage/spam' | path relative-to 'eggs/bacon/sausage'
spam
```

There are also additional [`path`-related fixes](https://github.com/nushell/nushell/pull/3441).

### Negative indexing for range (alexshadley)

You can now pass negative ranges to the `range` command, and it will work from the back of the input.

```
> echo [1 2 3 4 5] | range (-3..)
```

Will return `[3, 4, 5]`.

### Default integer is now signed 64-bit (sophiajt)

In 0.32, adds a new primitive data type for i64 and makes it the default integer type.

### Improved filename support (ahkrr, fdncred)

Filename [quoting for #](https://github.com/nushell/nushell/pull/3524). Pipes are [also now escaped](https://github.com/nushell/nushell/pull/3489)

### sqlite improvements (Garfield96)

A panic in [sqlite support has been fixed](https://github.com/nushell/nushell/pull/3522) and the support rusqlite crate [has been updated](https://github.com/nushell/nushell/pull/3523).

### `seq` is now more nu-like (fdncred)

The `seq` command is now more nushell friendly by returning numbers when it can and strings when it must. This will definitely break some scripts.


Title: Nushell Updates: Flag Equals, String Concatenation, Path Operations, Ranges, Integers, Filenames, SQLite, `seq` Improvements
Summary
This section of the Nushell update covers multiple improvements and fixes, including the ability to use equals signs with flags, simple string concatenation, path relative-to operations, negative indexing for range, default 64-bit signed integers, improved filename support (quoting for # and escaping pipes), SQLite improvements (panic fix and rusqlite crate update), and making the `seq` command more Nu-like by returning numbers or strings based on the input.