str contains --not
flag (redundant since we have not
operator)
print (-e)
: https://github.com/nushell/nushell/issues/12686ls --mime-type
--not
on str contains
--not
flag to every command that returns a bool
not (check)
is a bit wordyis-not-empty
is one of the frequently used cases where the ceremony would be annoyingnot
is an operator so it can't really act like a regular command| not $in
should work already (thx Ian for pointing this out)| not
would be slightly more elegant (would require some parser hacking because not
is an operator)Should we reserve out>
for externals only?
out>
doing multiple things potentially, going from a string stream to a file would be very straightforward, but print
doesn't produce a string streamerr>null
and err> /dev/null
is not cross-platformout> file
is faster for externals because the OS can do ito>
and o>>
should work for nushell internal values, o>|
is a noop = |
echo "aaa" o> file.txt
o+e>
would break if we disallow values and you may encounter a situation where there is an external emitting STDERR in your previous pipeline step.
Separate track print
and internal eprintln!
s
print err>
or print out>
already, so it's important that people understand the differenceOutDest
) is from the Stack
, it's actually possible for print
to support this. Maybe we can be consistentls --mime-type
ls --mime-type
or
or
By clicking below, you agree to our terms of service.
New to HackMD? Sign up
Syntax | Example | Reference | |
---|---|---|---|
# Header | Header | 基本排版 | |
- Unordered List |
|
||
1. Ordered List |
|
||
- [ ] Todo List |
|
||
> Blockquote | Blockquote |
||
**Bold font** | Bold font | ||
*Italics font* | Italics font | ||
~~Strikethrough~~ | |||
19^th^ | 19th | ||
H~2~O | H2O | ||
++Inserted text++ | Inserted text | ||
==Marked text== | Marked text | ||
[link text](https:// "title") | Link | ||
 | Image | ||
`Code` | Code |
在筆記中貼入程式碼 | |
```javascript var i = 0; ``` |
|
||
:smile: | ![]() |
Emoji list | |
{%youtube youtube_id %} | Externals | ||
$L^aT_eX$ | LaTeX | ||
:::info This is a alert area. ::: |
This is a alert area. |
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.
Syncing