Daniele Scasciafratte

Results 1200 comments of Daniele Scasciafratte

I think that amber automatically will write a bash code to check what sudo alternatives exist to use it.

I think that is not bad to have this kind of blocks. We can do like for stdlib and implement some of them natively and in case the user can...

Can be an idea for sure. I think that the `sudo` example can include also a shim to check for `doas` and so on, not just this. `mv` will check...

Right now we have https://github.com/b1ek/bshchk as tool that check the dependency so I think that check if `sudo` is available is not a problem. Maybe that tool can integrate a...

@fiftydinar In the ticket infact I mention also `doas` so the implementation will have a fallback and will look for what is in the system.

I think that is the same error of this case: ``` pub fucn test() { echo 123 } ``` that says: ``` Identifier 'pub' is a reserved keyword ```

duplicate of https://github.com/amber-lang/amber/issues/346

In this case I think that if the code is written: ``` if file_exists(not_existent.txt) { let result = unsafe $cat not_existent.txt$ echo "---" echo result } ``` It is like...

A line of code: ``` if unsafe $[[ {packed_file} ~= ".tar." ]]$ { ``` Generate: ``` __AMBER_VAL_2=$([[ ${packed_file} ~= ".tar." ]]); ``` That fails in bash

This is right: ``` if $[[ {packed_file} = *".tar."* ]]$ { ``` that generates: ``` __AMBER_VAL_2=$([[ ${packed_file} = *".tar."* ]]); ``` The problem is that doens't return anything so the...