LinuxQuestions.org
Visit Jeremy's Blog.
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, 09: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, 09: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, 09:55 PM   #3
sag47
Senior Member
 
Registered: Sep 2009
Location: Raleigh, NC
Distribution: Ubuntu, PopOS, Raspbian
Posts: 1,899
Blog Entries: 36

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
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 10:10 PM.
 
Old 10-13-2010, 12:36 AM   #4
grail
LQ Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 10,005

Rep: Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191
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, 08:25 AM   #5
sag47
Senior Member
 
Registered: Sep 2009
Location: Raleigh, NC
Distribution: Ubuntu, PopOS, Raspbian
Posts: 1,899
Blog Entries: 36

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
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, 08:32 AM   #6
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,217

Rep: Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309
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 03:25 AM
SED and shell variables 3saul Linux - Software 4 12-28-2005 11:37 PM
Shell variables Milosevic Linux - Newbie 2 12-10-2005 10:32 PM
Sub shell environment variables tnine9 Programming 1 06-08-2004 01:27 PM
Shell Variables. ducka Programming 5 09-03-2003 05:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:29 AM.

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
Open Source Consulting | Domain Registration