LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-12-2010, 10:14 PM   #1
michael mc hugh
LQ Newbie
 
Registered: Oct 2010
Posts: 6

Rep: Reputation: -2
Question Experimenting with shell variables


Please help Explain the following unexpected results
$ whereis date
date: /bin/date …
$ echo $ PATH
. :/user/local/bin:/usr/bin: /bin
$ cat > date
echo “This is my own version of date.”
$ date
Sat May 24 11:45 : 49 PDT 2008
 
Old 10-12-2010, 10:42 PM   #2
Meson
Member
 
Registered: Oct 2007
Distribution: Arch x86_64
Posts: 606

Rep: Reputation: 67
It would help if you told us what is unexpected. But this:
Code:
cat > date
what are you trying to do here? It should probably just hang.
 
Old 10-12-2010, 10:55 PM   #3
sag47
Senior Member
 
Registered: Sep 2009
Location: Orange County, CA
Distribution: Kubuntu x64, Raspbian, CentOS
Posts: 1,831
Blog Entries: 36

Rep: Reputation: 451Reputation: 451Reputation: 451Reputation: 451Reputation: 451
Edit: I gave you the correct answer but then I noticed this post.

I am going to assume that this is also homework and withdraw my answer. You have wasted my time.

Last edited by sag47; 10-12-2010 at 11:10 PM.
 
Old 10-13-2010, 01:36 AM   #4
grail
LQ Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 9,252

Rep: Reputation: 2685Reputation: 2685Reputation: 2685Reputation: 2685Reputation: 2685Reputation: 2685Reputation: 2685Reputation: 2685Reputation: 2685Reputation: 2685Reputation: 2685
I am curious ... if we all help you do we get any of the accolades?

Or maybe you just chose a supplementary class and thought this sounded easy and have now found out you know nothing about computers and or linux
 
Old 10-13-2010, 09:25 AM   #5
sag47
Senior Member
 
Registered: Sep 2009
Location: Orange County, CA
Distribution: Kubuntu x64, Raspbian, CentOS
Posts: 1,831
Blog Entries: 36

Rep: Reputation: 451Reputation: 451Reputation: 451Reputation: 451Reputation: 451
Quote:
Originally Posted by grail View Post
Or maybe you just chose a supplementary class and thought this sounded easy and have now found out you know nothing about computers and or linux
Even if it is his/her first Linux class it's not hard to RTFM.
 
Old 10-13-2010, 09:32 AM   #6
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: Slackware
Posts: 7,007

Rep: Reputation: 2531Reputation: 2531Reputation: 2531Reputation: 2531Reputation: 2531Reputation: 2531Reputation: 2531Reputation: 2531Reputation: 2531Reputation: 2531Reputation: 2531
Quote:
Originally Posted by grail View Post
Or maybe you just chose a supplementary class and thought this sounded easy and have now found out you know nothing about computers and or linux
That, of course, would not be a problem for any student worth helping. It just means he would have to work a little bit harder than some of his peers.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
shell variables thehollow89 Linux - General 20 03-22-2010 04:25 AM
SED and shell variables 3saul Linux - Software 4 12-29-2005 12:37 AM
Shell variables Milosevic Linux - Newbie 2 12-10-2005 11:32 PM
Sub shell environment variables tnine9 Programming 1 06-08-2004 02:27 PM
Shell Variables. ducka Programming 5 09-03-2003 06:38 PM


All times are GMT -5. The time now is 03:59 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration