View Single Post
Old 08-25-2007, 11:47 PM   #11 (permalink)
rivviepop
BlackBerry Extraordinaire
 
rivviepop's Avatar
 
Join Date: Dec 2006
Location: san francisco
Model: 8320
PIN: n/a
Carrier: t-mobile
Posts: 2,166
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by DaveAnderson View Post
Not sure what they mean with the semi-colon. Doing so simply sends ;ls to the server, which is no good.
The semi is a bad tip, it won't work. The semi is used on the cmdline to separate multiple commands from one another that are normally on new lines (like a for loop). Starting a line with a semi by itself and no command (sic) in front of it will result in a syntax error.

These are the same:

Code:
for ii in *.tar.gz; do
  echo $ii
done
Code:
for ii in *.tar.gz; do echo $ii; done;
I frequently use the latter to whip out quick file processing loops on the cmdline without having to resort to a script (I have some serious doozy one-liners ).

I have the same problem with the cap letter -- try using your ! instead, for instance !ls and !exit, as a workaround. If you're just typing a simple one-binary command like ls, cd, etc. it works fine -- it will print the command on the stdout, but it works. (this is not what you're supposed to use the reserved ! for, but any port in a storm!).
__________________
[ Linux & BlackBerry ] http://www.blackberryforums.com/linux-users-corner/
Offline