Search Results

Search: Posts Made By: Perderabo
9,261
Posted By Perderabo
Re: shell scripting...
The shell expands stuff like ~toto into a directory name early in its processing of a command line. And it expand $user fairly late.

Try this:

eval "ls ~$user"
Showing results 1 to 1 of 1

 
All times are GMT -4. The time now is 12:11 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy