Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 07-22-2013, 06:14 AM   #16
Senior Member
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,541

Rep: Reputation: 1062Reputation: 1062Reputation: 1062Reputation: 1062Reputation: 1062Reputation: 1062Reputation: 1062Reputation: 1062

Originally Posted by textillis View Post
1. But what about simply "\h" to render "hostname"; which is what works for me?
Hmm. Well, you know something I don't -- never heard of using "\h" for hostname, may give that a try somewhere or other. I've always found that defining environment variables with descriptive upper case letters to be useful -- you can see the content of a variable with "echo ${VARIABLE};" e.g., echo ${HOST} or echo ${USER}. For that matter, you can see the content of every environment variable by executing "env". Different strokes...
Originally Posted by textillis View Post
2. I notice you use single ` ... `; are these equivalent in scripting to " ... " (a key with which I am more comfortable: ie: i can actually hit it accurately, nearly every time )?
Frequently single quotes are just fine in place of double quotes (not `, but ', ` means something different entirely). You use `command` as a "sideways pipe" to feed output of "command" into an expression. Something like
command `other_command argument(s)`
would feed the output of other_command argument(s) into command.
Originally Posted by textillis View Post
3. slack is sinking into my fibres, into my dreams and taking up waaaayyy too much of my waking moments for me to continue to claim the tag of normality.
Yeah, that sort of thing do tend to happen.

Hope this helps some.
Old 07-22-2013, 07:49 AM   #17
Registered: Aug 2010
Distribution: Slackware
Posts: 147

Rep: Reputation: Disabled
Originally Posted by Didier Spaier
Before reading "man bash" I would recommend anyone reading the definition of the Shell Command Language in the POSIX standard
Well, it is a specification, so probably the most useful document for someone who uses to program, but a bit dry for the others. The best IMHO is to first get a tutorial to learn the very basics, then to find some simple but useful (something you'll maintain and improve) CLI tool to code for your own usage. Then the spec and all the manuals (I agree the bash manual's not handy when you don't know what you look for) can be interesting to solve the concrete problems you will encounter.

Originally Posted by textillis
(Your suggestion about perl has peeked my curiosity)
If you read French, vieux, here's the the good introduction I've followed to dive in Perl.

Last edited by NonNonBa; 07-22-2013 at 07:50 AM.
1 members found this post helpful.
Old 07-22-2013, 10:06 AM   #18
Registered: May 2013
Location: Northern Rivers, NSW, Australia
Distribution: Slackware64-current, Mint Nadya
Posts: 299

Original Poster
Rep: Reputation: 2
Thanks NonNonBa.
I read French pretty well; however, if I decide to take the plunge (I'm wavering between python, perl and haskell) I will need to get an English primer.


non-root, shell prompt

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
Need Track if any user close the windows of shell prompt sahworld Linux - Server 1 03-22-2011 01:06 PM
Can root and my main user account share the same home directory? rivercat Linux - Newbie 11 02-21-2011 07:22 PM
Root Shell, Path & Prompt tschima Solaris / OpenSolaris 3 05-03-2008 09:51 PM
howto: verify a user/pass at the shell prompt. exodist Linux - Security 8 08-16-2006 05:16 AM
How to set tcsh prompt: # for root and % for user? robson Linux - Newbie 1 10-12-2003 03:13 PM > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:30 PM.

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