pfSense Support Subscription

Author Topic: pfsense shell not complete or wrong? csh? shell not working as expected  (Read 713 times)

0 Members and 1 Guest are viewing this topic.

Offline cat1510

  • Newbie
  • *
  • Posts: 18
  • Karma: +0/-0
    • View Profile
Hi Developer,

is here the right place to ask a question about shell?
What shell is pfsense using?

I wrote a simple script but there is no equal operator.
Operators tested: == | = | -eq
All things I found that its a csh shell but nor reacting as one.
Is there a possibility to install another shell or what am I doing wrong?


Code: [Select]
[2.1.4-RELEASE][root@bwrouter1.bwrez.de]/tmp(44): ./test.sh
+ vnstat -u
+ date +%H
+ LASTHOUR=18
+ vnstat -h
+ tail -n 3
+ awk '-F ' '{ print $7 }'
+ grep -w 18
+ [ -eq 18 ]
[: -eq: unexpected operator
+ exit

THX


CAT

Offline cat1510

  • Newbie
  • *
  • Posts: 18
  • Karma: +0/-0
    • View Profile
Re: pfsense shell not complete or wrong? csh? shell not working as expected
« Reply #1 on: September 01, 2014, 01:51:11 pm »
plz delete. fixed.
was my fault of course in the code before.

sorry for disturbing.




CAT

Offline stephenw10

  • Administrator
  • Hero Member
  • *****
  • Posts: 11884
  • Karma: +461/-15
    • View Profile
Re: pfsense shell not complete or wrong? csh? shell not working as expected
« Reply #2 on: September 07, 2014, 10:54:38 am »
It's tcsh in case you haven't found that by now.

Steve