guile-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: system default shell


From: Maciej Stachowiak
Subject: Re: system default shell
Date: Thu, 11 Oct 2001 13:11:37 -0700
User-agent: Mutt/1.2.5i

On 11Oct2001 01:15PM (+0200), David Pirotte wrote:
> how can i ask
> 
>       (system <...>)
> 
> to use the default user shell (instead of 'sh)
> 
> for example (system "beep") works in bash
> 

You'll have to lookup the user's shell and call it inside your system
command. `system'is meant to give consistent results regardless of the
user's shell.

(system "bash -c 'beep'") would be an example of how to force use of
bash, but if you really want to get the user's shell you will have to
use getpwent and the like.

 - Maciej




reply via email to

[Prev in Thread] Current Thread [Next in Thread]