1 / 9
Aug 2010

Users can't use Bash in 100% because there is a lack of commands available.
I don't know Bash (I'm asking for other users) but I know that on SPOJ there aren't these commands and I ask to add them if possible:

    gawk
    bc
    nawk
    dc
    sed
    zcat
  • created

    Aug '10
  • last reply

    Aug '15
  • 8

    replies

  • 312

    views

  • 4

    users

  • 1

    link

10 days later

Please, make a full list of commands, each with a short description "why".

Unfortunately I can't. I said that I don't know Bash. Even if I knew it, it would be difficult to guess which commands are available and which are not. I would have to try them all.
I know that commands, which I mentioned, aren't available because I check every Bash program in my contest which get NZEC and there is written everything.
Why? I think all commands should be available because they're a pert of Bash. If they weren't useful, they wouldn't be added "into" Bash. That's like deleting cin and cout from C++ because scanf and printf is faster. wink

1 month later

If You know Bash well, please confirm that above-mentioned commands won't allow users to cheat, so that admins were sure that adding them is safe.

bc - arbitrary precision calculator (as far as I know pure Bash can't handle floating point calculations)
(g)awk - useful for text processing
sed - stream editor for filtering and transforming text

I'm sure that commands above can improve programming with Bash.

1 month later
4 years later

archived Aug 28, '15

archived Aug 28, '15