linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Piter PUNK <piterpk@terra.com.br>
To: linux-hotplug@vger.kernel.org
Subject: Re: rule_generator.functions: invalid PATH?
Date: Tue, 07 Nov 2006 13:09:04 +0000	[thread overview]
Message-ID: <45508570.1050706@terra.com.br> (raw)
In-Reply-To: <454EA668.7030203@kadzban.is-a-geek.net>

Kay Sievers wrote:
> On 11/7/06, Marco d'Itri <md@linux.it> wrote:
>> On Nov 07, Piter PUNK <piterpk@terra.com.br> wrote:
>>
>>>         /bin/pwd
>> pwd is a shell built-in.
> 
> Right, and "pwd -P" returns the real path, without the need for the loop.

sysreadlink() {
         local file="$1"
         local LINK=""
         local i
         [ -e "/sys$DEVPATH/$file" ] || return 0
         cd /sys$DEVPATH/$file
         pwd -P
}

Tested again with /block/hdc and works fine.
In dash "pwd -P" works fine?

					Thanks for your help

							Piter PUNK
-- 
     |        E-Mail: piterpk@terra.com.br        (personal)
    .|.               roberto.batista@ntux.com.br (professional)
    /V\
   // \\      UIN:116043354  Homepage:http://piterpunk.info02.com.br
  /(   )\
   ^`~'^         ----> Slackware Linux - The Best One! <----
  #105432

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid\x120709&bid&3057&dat\x121642
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

  parent reply	other threads:[~2006-11-07 13:09 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-06  3:05 rule_generator.functions: invalid PATH? Bryan Kadzban
2006-11-06 20:20 ` Marco d'Itri
2006-11-06 23:23 ` Bryan Kadzban
2006-11-06 23:42 ` Dan Nicholson
2006-11-07 11:35 ` Piter PUNK
2006-11-07 11:39 ` Marco d'Itri
2006-11-07 11:44 ` Piter PUNK
2006-11-07 12:22 ` Kay Sievers
2006-11-07 12:39 ` Piter PUNK
2006-11-07 12:42 ` Marco d'Itri
2006-11-07 12:56 ` Piter PUNK
2006-11-07 12:57 ` Kay Sievers
2006-11-07 12:58 ` Marco d'Itri
2006-11-07 13:09 ` Piter PUNK [this message]
2006-11-07 13:14 ` Marco d'Itri
2006-11-07 13:17 ` MUNEDA Takahiro
2006-11-07 13:19 ` Piter PUNK
2006-11-07 17:49 ` Piter PUNK
2006-11-07 17:55 ` Bryan Kadzban

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=45508570.1050706@terra.com.br \
    --to=piterpk@terra.com.br \
    --cc=linux-hotplug@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).