gnu.de
Sign In Sign Up
Manage this list Sign In Sign Up

Keyboard Shortcuts

Thread View

  • j: Next unread message
  • k: Previous unread message
  • j a: Jump to all threads
  • j l: Jump to MailingList overview
thread

bash

Russ Whitaker

11 May 1999 11 May '99
12:25 p.m.

hi frank i'm not a bash expert either: it took me 2 hours to come up with the following enter the following 6 lines of code in a file called test #!/bin/sh if [ $1 = $2 ]; then echo "ok" else echo "oops" fi next, chmod 777 test then try it: ./test 1 1 and ./test 1 2 now go back and change the = to == and try it and you get ./test: [: ==: binary operator expected oops note: bash is from slakware 3.5 thanks russ

0 0
Reply
Sign in to reply online Use email software

Back to the thread

Back to the list

HyperKitty Powered by HyperKitty version 1.3.12.