shell error messages not displayed as a message box!!!
Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Re: shell error messages not displayed as a message box!!!
Quote:
Originally posted by user222 why does linux display shell error messages like "dependency not found" in a message box in x???
I didn't know it did. Which distribution are you using?
Quote:
Originally posted by user222 by the way, why are file names case-sensitive in the shell???
It's a design decision: in Linux, you can have the same filename, once in uppercase, once in lowercase, and they will point to two different files.
Quote:
Originally posted by user222 and why do you need to add "\" before every space in a file name with spaces???
Because parameters are separated by spaces. If you didn't put the backslash, your program would read the two halves of the filename as separate filenames, and hopefully not find them and throw up an error message. You've probably seen this in action...
Re: shell error messages not displayed as a message box!!!
Quote:
Originally posted by user222 why does linux display shell error messages like "dependency not found" in a message box in x???
You left out not between linux and display.
Because it's a terminal, not a X server window, and doesn't display graphics.
Quote:
in windows you would see always see a "dependency not found" message in a message box!!!
Not if you're working from command line, such as a DOS prompt.
Quote:
by the way, why are file names case-sensitive in the shell???
Because Linux uses case sensitive file names - higher intelligence. This allows
you to have more possibilities of filenames. I won't do the math for you, but
if you're interested enough you can calculate how many more with case
sensitive versus not case sensitive.
Quote:
and why do you need to add "\" before every space in a file name with spaces???
Because Linux doesn't use ambiguous spaces in filenames. Here's a script to remove
all the spaces from filenames and replace them with the _ of higher intelligence
Code:
#!/bin/bash
IFS='
'
j=`find $1 -printf "%d\n" | sort -u | tail -n 1`
j=$((j-1))
echo "Max dir depth:" $j
for (( i=0; i<=j ; i++ ))
do
for name in `find -mindepth $i -maxdepth $i -iname "* *" -printf "%p\n"`
do
newname=`echo "$name" | tr " " "_"`
echo "$name" "$newname"
mv "$name" "$newname"
done
done
##########
Originally posted by user222 SORRY, I MEANT DOESN'T in "why does linux display shell error messages like "dependency not found" in a message box in x"!!!!
Quit being so rude. All capitals and exclamation marks are considered YELLING
user222, this isn't M$windows. You don't have to pay tons of $ to get the kind of popup dialog you want. This is Linux; open sourse, not commercial development to someones pocketbook. If you want popups like that, and you have the programming skills to make it work, then do so and offer it back to the community. If you don't have the programming skills, but know someone who does, get them involved.
Basically, if you want window$ functionality, stay with window$. Linux is a work in process, still growing and improving. Search the boards; talk to people. Someone will hear your plea and will write the code.
Live long and prosper.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.