15,767 reputation
12552
bio website
location
age
visits member for 4 years, 1 month
seen 1 hour ago

The views expressed on this web site are my own and do not necessarily reflect the views of my employer, Oracle.

profile for jlliagre on Stack Exchange, a network of free, community-driven Q&A sites


1d
comment What is $PWD? (vs current working directory)
@Thushi You are more than likely correct. PWD was introduced by ksh88 which document it as: PWD The present working directory set by the cd command. You should add this to your reply.
1d
comment What is $PWD? (vs current working directory)
@JohnWHSmith If you downvoted for that reason which is perfectly valid, you would have better also add a comment earlier explaining why.
1d
comment What is $PWD? (vs current working directory)
@MadsSkjern Most builtins are required by the POSIX standard to be also available as commands. This is to allow calling them directly from other programs without the need to launch a shell.
1d
comment What is $PWD? (vs current working directory)
@llua Nothing forbids PWD to be an environment variable. It is actually the default case with most if not all shells and that makes sense to provide it to children processes.
Dec
15
revised Interactive shell in background inside another shell script
edited body
Dec
15
answered Interactive shell in background inside another shell script
Dec
12
comment Is it better to use $(pwd) or $PWD?
@Minix The $() is indeed specified by POSIX so outside the pre POSIX /bin/sh available on Solaris 10 and older and csh derived shells, I doubt many other mainstream shells lack that feature.
Dec
11
answered How can I capture a consistent snapshot of a directory and all its children?
Dec
9
comment Getting ZFS to list the physical disks in a zpool
If that anwers your question, feel free to accept it !
Dec
9
comment find, xargs and mv: renaming files with double-quotes, expansion and bash precedence issue
You might want to replace echo "$0" by printf "%s" "$0" to avoid issues with file names starting with a dash or containing an escaped character.
Dec
8
comment Print numbers from 1-50
Beware that seq is not portable either not being part of the POSIX specified utilities.
Dec
8
answered Print numbers from 1-50
Dec
8
answered Getting ZFS to list the physical disks in a zpool
Dec
8
answered When is a symbolic link not acceptable?
Dec
5
comment French in the Indian version of the Samsung Note 4
Unix & Linux being essentially Unix & Gnu/Linux, this question is better suited to android.stackexchange.com
Dec
3
revised Data Types in UNIX
added 255 characters in body
Dec
3
comment Data Types in UNIX
You are correct if you stick to POSIX but most shells like at least bash, ksh93 and zsh allow variable typing as an extension.
Dec
3
revised Data Types in UNIX
added 371 characters in body
Dec
3
revised Data Types in UNIX
added 371 characters in body
Dec
3
answered Data Types in UNIX