Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Apr 23 16:19
    PQCraft edited #126
  • Apr 23 16:19
    PQCraft opened #126
  • Feb 10 08:42
    wittayaarm opened #125
  • Dec 02 2020 08:00
    tituomin closed #98
  • May 14 2020 17:10
    AwesomeTech10 closed #122
  • Feb 27 2020 20:03
    gromovadarya90 opened #124
  • Jan 16 2020 02:36
    AwesomeTech10 commented #122
  • Jan 14 2020 08:57
    nfischer commented #122
  • Jan 14 2020 08:48
    nfischer opened #123
  • Jan 14 2020 08:48

    nfischer on cash-external

    feat: allow external commands o… (compare)

  • Jan 13 2020 02:05
    AwesomeTech10 commented #120
  • Jan 13 2020 02:03
    AwesomeTech10 commented #122
  • Jan 13 2020 00:50
    nfischer commented #120
  • Jan 13 2020 00:36
    nfischer commented #122
  • Jan 11 2020 19:44
    AwesomeTech10 edited #122
  • Jan 11 2020 19:44
    AwesomeTech10 edited #122
  • Jan 11 2020 19:44
    AwesomeTech10 opened #122
  • Jan 08 2020 04:28
    AwesomeTech10 opened #121
  • Jan 08 2020 00:22
    AwesomeTech10 commented #120
  • Jan 08 2020 00:10
    AwesomeTech10 commented #120
dc
@dthree
:+1:
dc
@dthree
@piranna digging into js-shell-parse - looks really good, but seems to be missing a lot of bash functionality still
are you familiar with pegjs?
Daniel Shneyder
@archcorsair
Hello Gentlemen
Jesús Leganés-Combarro
@piranna
No, I'm not
but I don't miss too much things, at least for the day-to-day...
Jesús Leganés-Combarro
@piranna
one that I miss is '>|' redirection, I find it important to implement
dc
@dthree
@archcorsair hello!
@piranna ok got it
I'm studying up on it now, it's just a mouthful
I tried some things, such as functions, and wrapped (in parentheses) expressions, and both of these things errored.
Jesús Leganés-Combarro
@piranna
yes, functions are not implemented, that's one of the things I missed
what do you mean by wrapped expressions?
Jesús Leganés-Combarro
@piranna
why don't we move discussion to the newly created repo? email is easier to use for discussions since it's asynchronous...
dc
@dthree
I mean echo hi && (false || echo failed) && echo bye
done
vorpaljs/bash-parser#1
Andrea Parodi
@parro-it
Hi all. I pulled upstream commits done in last days. I tried tests and got 171 failures.
I will push them anyway vorpaljs/bash-parser. We could then stabilize the situation there.
dc
@dthree
Awesome, thanks @parro-it !
Jeremy
@j-em
@dthree Cool project - I'm in the process of implementing rmdir and I figured it would be best if it would reuse code from rm.js. I got some questions before getting too deep into it.
Jeremy
@j-em

1) https://github.com/dthree/cash/blob/master/src/commands/rm.js#L147 - Why is that necessary? Is there some gotcha with https://nodejs.org/api/fs.html#fs_fs_accesssync_path_mode that I'm missing ? (perhaps some cross-platform issues...)

2) https://github.com/dthree/cash/blob/master/src/commands/rm.js#L81 - I read this as: if current file is a symbolic link, do X thing and if it's not, do the exact same X thing (X being unlink in that case).

Jeremy
@j-em
Besides that I figured rmdirSyncRecursive should be in its own module in /util and then both rm and rmdir will be able to require it.
If my assumptions were correct - I hope these kind of refactoring are welcomed :)
Jeremy
@j-em
(to be clear about my first point: https://github.com/dthree/cash/blob/master/src/commands/rm.js#L81-L91 this looks superflous)
dc
@dthree
@j-em thanks and I really appreciate your help
1) I actually got that snippit from ShellJS, haha. So I don't know the history on that. Usually if you see something like that though, it handles some edge case.
2) Good point! That extra clause should be trashed.
Besides that I figured rmdirSyncRecursive should be in its own module in /util and
I agree :+1:
Nate Fischer
@nfischer
@j-em Thanks for finding that! Just opened shelljs/shelljs#408 to remove the extra clause.
Jeremy
@j-em
@dthree sweet! After looking at the history of ShellJS, it looks like when this hack was written node didn't have fs.access yet - so this might be the reason.
@nfischer No problem ! :)
dc
@dthree
Hah - good find!
:+1:
Greg Wolff
@greg-wolff
hey everyone!
is cash able to support tmux? (https://tmux.github.io/)
Nate Fischer
@nfischer
We don't implement the tmux ourselves, so you'll have to have it already installed. I don't see why cash would have any issues running inside tmux (I've done it in Linux)
Sean Leonard
@MeanderingCode
Hey all. This project is pretty amazing
I was looking through it thinking about the best way to extend it for internal use, adding in tools that are specific and even wrapping some commands...
I thought of just adding to it as per normal contribution, but there are things to override and change, leading to maintaining a branch of patches and rebasing over time.
it doesn't look, though, like there is a good way to include it's interactive functionality, and give access to inner objects and functions.
So it would lead to file replication (e.g. dist/index.js), which amounts to the same as maintaining patches
any tips or something i didn't think of?
Nate Fischer
@nfischer
Not sure if this project is really extensible. @dthree could better answer. I think the goal of this project is to implement the basic Unix commands, within the repo. If you just want to write your own set of commands, you could try using vorpal, which is the core of cash
Miceal Gallagher
@micealgallagher
Hi all, was wondering how I can use GIT with Cash.
Is there an NPM package I can install?
Nate Fischer
@nfischer
@micealgallagher if you have git installed externally on Windows, I believe cash will use it. There is currently no JS-implemented git command packaged as part of cash.
Саша Черных
@Kristinita
No activity( .
arun1167
@arun1167
Hello all
I have one question..... i install gnucash....for linux
please help me understand this