|
Reader Feedback and Insights: Ted's Too Easy on Unix
Hey, Ted:
You have written a great explanation, but Unix is far worse than you indicated ["Understanding the Unix Mindset"].
A Unix command cannot tell the difference between an option and a parameter! So if you typed this:
mv filename -filename
You would end up with a file called -filename. But if you typed this:
mv -filename filename
You would end up with an error message, because Unix thinks that the -f in the first parameter is an option. According to The Unix Hater's Guide there are several myths about Unix. One is that Unix is well-documented. Another is that Unix is documented.
You can always check out the "bugists" in the "man" pages. (By the way, I thought the commands were named after stomach noises.)
The UNIX-HATER's Handbook is published by IDG Books (ISBN 1-56884-203-1). The book comes with your very own Unix barf bag!
--Dave
Not only does Unix think the f is an option, it also thinks that i, l, e, n, a, m, and e are options.
The second example you gave works under Qshell and the Korn shell, if you add a double-dash (--) after mv, to indicate the end of the options.
mv -- -filename filename
But, of course, you shouldn't have to add a double dash.
I'll have to get a copy of The Unix Hater's Guide.
--Ted
Sponsored By
LINOMA SOFTWARE
|
|
Revolutionary Solutions For Your World.
AXES - web-enable with no programmer intervention and no interactive CPW. Load & Go!
· Host data is captured directly at the program I/O level (not a screen scraper)
· Source code is not required for programs and display files
· aXes sessions can run without consuming interactive CPW
· Includes a powerful and lightweight web server - WebSphere is not required
· Supports advanced 5250 display features, UIM help text and IBM panels
RPG TOOLBOX - Modernize your RPG source and develop more efficiently.
· Convert RPG III and RPG/400 source code to RPG IV and free-form syntax
· Over 70 new line commands & over 190 code snippets included
· Used by the top RPG instructors & IBM because of learning benefits it offers
SURVEYOR/400 - Graphical suite of powerful tools all in one product.
· View and convert spooled files to a PDF or TXT format
· View, add, change and delete database records using a spreadsheet-like interface
· Download files to your workstation into delimited, fixed, XML or HTML formats
· Upload text files into iSeries database files using a three-step wizard
· Automate data transfers using any AS/400 or iSeries scheduler
TRANSFER ANYWHERE - Enterprise level solution for batch data conversion and transfer regardless of the platforms, formats or databases in the organization. Transfer Anywhere can be used for:
· Database to Database pumps
· Conversion of database records to multiple format types, including Excel, Fixed Width, Delimited, XML and HTML
· Compression to .ZIP
· E-mail distributions
· FTP distributions
· Distributions to the IFS
· FTP to FTP transfers
· FTP to iSeries IFS transfers
· iSeries IFS to FTP
· Data encryption using Open PGP
Purchase a new iSeries and get up to $5000 from IBM to purchase Linoma's ServerProven tools! Get more information on the IBM rebate, product information and download your FREE trials today at www.linomasoftware.com.
|
|
Editors
Howard Arner
Joe Hertvik
Ted Holt
David Morris
Managing Editor
Shannon Pastore
Publisher and
Advertising Director:
Jenny Thomas
Advertising Sales Representative
Kim Reed
Contact the Editors
Do you have a gripe, inside dope or an opinion?
Email the editors:
editors@itjungle.com
|